[wp-trac] [WordPress Trac] #64696: Real time collboration effectively disables persistent post caches while anyone edits a post
WordPress Trac
noreply at wordpress.org
Tue Mar 24 09:07:21 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 has-unit-tests | Focuses: performance
--------------------------------------+--------------------------
Comment (by zieladam):
In [changeset:"62099" 62099]:
{{{
#!CommitTicketReference repository="" revision="62099"
Real-time collaboration: Use prepared queries instead of *_post_meta
functions.
Replaces add_post_meta/update_post_meta with wpdb->insert/wpdb->update.
This prevents a real-time editing session from invalidating WP_Query and
various other post caches every few seconds. RTC stores awareness and sync
information in post meta with high frequency. However, every call the
*_post_meta functions invalidated post caches.
This commit avoids this frequent invalidation by removing the direct
*_post_meta calls in favor of $wpdb calls.
Props czarate, mukesh27, paulkevan.
Developed in https://github.com/WordPress/wordpress-develop/pull/11325.
See #64696.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64696#comment:123>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list