Suspend calling wp_cache_set_posts_last_changed() when touching post meta in WP_Sync_Post_Meta_Storage#11002
Conversation
…meta in WP_Sync_Post_Meta_Storage
…h_suspended_posts_last_changed_update() Co-authored-by: gemini-cli <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
I can't speak to whether this is the correct performance mitigation, but the code change looks good in the context of the sync provider. 👍 Thank you! |
|
@mindctrl it might be helpful to also have a client that is continuously doing reads to a function that uses It seems like there are a lot of examples where unrelated post and post meta changes are causing object cache invalidations needlessly. (Cache invalidation is hard!) |


Trac ticket: https://core.trac.wordpress.org/ticket/64696
Use of AI Tools
Gemini CLI authored a commit to help add phpdoc for the
with_suspended_posts_last_changed_update()method.This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.