-
Notifications
You must be signed in to change notification settings - Fork 19
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
WP Query object cache #124
Comments
@beatricelucaci I had the same issue long time ago and now I headed back to it. It seems that ColorlibHQ ist not really into fixing the issue, so I fixed it by myself. At least they provide two action hooks so you can invalidate the object cache manually when the order has changed by using the wp_cache_flush function from WordPress
It seems to be too easy as a proper solution but it works for my case. If you had any more ideas in the past few months let me know :) |
When I use object cache on my website (in my case, I’m on SiteGround, so I use Memcached) the plugin stops working correctly. More specifically: I reorder some posts, reload the page, and the posts are back in their original order.
As soon as I turn Memcached off, the problem is gone.
This probably happens because WP_Query caches results in object cache. And the plugin does not seem to invalidate this cache properly, see #115.
For more details on the WP_Query cache implementation (which was added in WP 6.1) see https://make.wordpress.org/core/2022/10/07/improvements-to-wp_query-performance-in-6-1/.
https://wordpress.org/support/topic/wp-query-object-cache/
The text was updated successfully, but these errors were encountered: