[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 17 21:17: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 has-unit-tests | Focuses: performance
--------------------------------------+--------------------------
Comment (by peterwilsoncc):
Replying to [comment:80 ellatrix]:
> How would it be a larger change than adding a whole new table? 🤔 I
quickly tried this locally and I have `113 insertions(+), 14
deletions(-)`. But I may be missing something. I think the only thing we
need there is a new `register_post_meta` setting, and some early returns
in `wp_cache_set_posts_last_changed` and `WP_Meta_Query`. What am I
missing?
It would require modifications and extensions to multiple components:
* Meta API would need to be extended to allow the registration of non-
queryable, uncached post meta
* Meta API functions would need to be updated to respect new setting, for
getting, setting and updating meta
* Potential cache API changes along with the above
* Query API would need to trigger errors for developers attempting to
query via the forbidden meta keys for post, term, user and comment query
classes
* `WP_Meta_Query` would need to be updated to exclude the forbidden meta
keys in any `meta_queries` (not sure how this would work, probably
altering `meta_query` to nest passed parameter.
* There's probably other things to consider too
The new table is also useful if the awareness API is expanded to other
screens within the dashboard, eg showing how many users are on a
particular screen.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64696#comment:86>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list