[wp-trac] [WordPress Trac] #64696: Real time collboration effectively disables persistent post caches while anyone edits a post
WordPress Trac
noreply at wordpress.org
Mon Feb 23 04:25:29 UTC 2026
#64696: Real time collboration effectively disables persistent post caches while
anyone edits a post
-------------------------------+--------------------------
Reporter: peterwilsoncc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 7.0
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: performance
-------------------------------+--------------------------
Comment (by westonruter):
Replying to [comment:3 peterwilsoncc]:
> Replying to [comment:2 westonruter]:
> > To work around this, we could temporarily unhook these when the post
meta is added or updated:
>
> That will end up breaking the cache for post queries using meta queries,
eg `WP_Query( [ 'meta_key' => 'looney_tunes', 'meta_value' => 'tom and
jerry' ] );`.
I don't mean for //all// post meta additions and updates. I mean
specifically in `WP_Sync_Post_Meta_Storage::set_awareness_state()` and
`WP_Sync_Post_Meta_Storage::add_update()`.
Here's what I have in mind: https://github.com/WordPress/wordpress-
develop/pull/11002
The only post meta involved would be `wp_sync_awareness` and
`wp_sync_update`. I don't believe there are any queries introduced which
involve querying by these post meta.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64696#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list