[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 01:05:24 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 czarate):

 Replying to [comment:76 dmsnell]:

 > @czarate was long-polling explored?

 It was. Ultimately, we sought a true lowest-common denominator approach
 that avoided a continuous connection (a scarce commodity on some hosts).
 In addition, some proxies and hosts can interfere long-polling. More
 discussion here: https://github.com/WordPress/gutenberg/issues/74085

 > > However, we still frequently poll for updates from the server because
 we don't know when other remote peers have updated the post in their
 editors…We also poll for awareness state
 >
 > Sorry for my misunderstanding. The discussion led me to believe that we
 are still sending pings to the server and updating `post_meta` for
 awareness even when the cursor hasn’t moved; literally when the human
 editor is sitting idle with the block editor open on the post.

 No misunderstanding. We do update awareness `post_meta` on every poll
 interval, even when there is no change in awareness state. We do so in
 order to establish the user's "last seen" date, which is eventually used
 to prune the user when they leave the session.

 It's a good call-out. We can probably implement some throttling so that
 the `post_meta` is only updated every n seconds or when awareness state
 changes. Most Yjs providers update awareness state every second.

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


More information about the wp-trac mailing list