-
-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$wpdb->delete() can't really be cached #180
Comments
The message does seem odd for such functions, tracing cache update would probably be difficult since it can be done through other function. |
The PR was merged and released in 0.3.0. I guess this is fixed. |
I'm still getting an error with |
Sorry... here's a minimal code example that triggers the error I'm getting: <?php
/**
* A demonstration of WPCS failing on $wpdb->delete().
*
* @file
* @package phpcs
*/
$wpdb->delete(); |
See b7d5416. |
So in other words, this was reverted by #400. |
Calling
$wpdb->delete()
is flagged as an uncached query. Of course, a delete operation can't really be cached. Same goes forupdate
andinsert
. However, I do suppose that in many cases they should perhaps still be accompanied by a cache update.So perhaps this should be left as it is, but it seems odd to me.
Related #178
The text was updated successfully, but these errors were encountered: