You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Meta: Allow registering meta keys that skip query cache invalidation
Add `invalidates_query_cache` parameter to `register_meta()`. Meta keys
registered with this set to `false` will not bump the `last_changed`
timestamp for the parent object's cache group when added, updated, or
deleted. This prevents high-frequency meta writes from invalidating
query caches site-wide.
Meta keys registered as non-query-cacheable are also blocked from use
in `WP_Meta_Query` clauses, since skipping cache invalidation would
lead to stale query results.
Registers the real-time collaboration meta keys (`wp_sync_awareness`
and `wp_sync_update`) with this flag to resolve the cache invalidation
issue described in https://core.trac.wordpress.org/ticket/64696.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
0 commit comments