[wp-trac] [WordPress Trac] #64696: Real time collboration effectively disables persistent post caches while anyone edits a post

WordPress Trac noreply at wordpress.org
Wed Mar 18 16:42:20 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 ellatrix):

 I updated the patch a bit: added unit tests and made sure it checks the
 post type. For WP_Query checks, it only refuses when there is a post type
 available to check. With type set to `any` or no WP_Query context, it
 allows the query since we can't be sure. I guess it's possible to have
 multiple meta key registrations of the same key for different post types
 with different settings, so I'm trying to take that into account. It's not
 a problem at all for the cache invalidation itself since we always know
 the post type, this is just about the WP_Query enforcement.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64696#comment:93>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list