-
Notifications
You must be signed in to change notification settings - Fork 104
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
Explore improving WP_Object_Cache
#36
Comments
I would like to add the suggestion to explore options to explicitly add 1st class citizen support for WordPress Multisite Setups. The issue with the current API becomes obvious with the In the wild I saw some 3rd party plugins expecting the MVP: Add a function to explicitly flush one particular sites cache. Could be done via optional $site_id / $blog_id parameter for |
Another issue we identified in the current way the Object Caching is setup are the "global cache groups". They are not really ment to be changed or configured in the way they are currently implemented. Again: This only affects Multisite Setups. But it is also another indicator that Object Cache + Multisite does not go along that well currently. |
@JanThiel Both fantastic points, I'll split these into separate issues to explore soon. |
I do have one more thing :-) ... But it's a complex one...
Having multiple processes like WP-CLI + WEB will lead to situations where changed cached data will not be updated within a running process. This can be solved by using the For example: This is the WordPress way to access post meta. But there is no way to tell WP to force flush the Object cache. Even when you know that there are potential issues. I like to propose considering adding a This is kind a big thing. I know. But maybe there is a smarter way which is less intrusive? |
@JanThiel: There might be a better way: woocommerce/action-scheduler#790 |
Looking at WP_Object_Cache to see if we can improve it overall, including the handling of mega objects, such as the
alloptions
key.The text was updated successfully, but these errors were encountered: