[wp-trac] [WordPress Trac] #61960: Heartbeat API: consider changing the min allowed time

WordPress Trac noreply at wordpress.org
Wed Sep 4 18:50:33 UTC 2024


#61960: Heartbeat API: consider changing the min allowed time
----------------------------+--------------------------
 Reporter:  annezazu        |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  6.7
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  performance
----------------------------+--------------------------

Comment (by azaozz):

 > heartbeat can be sped up
 . ...
 > it seems this was done over a decade ago due to performance concerns

 Sure, there doesn't seem to be a good reason to keep that imitation any
 more. As far as I see it can be removed completely (min = 1 second?) so it
 can be sped up when needed.

 I'll be a bit hesitant to set the default to 5 seconds though. Heartbeat
 is used on all wp-admin screens to check for expiring user logins. That
 user case doesn't need frequent checks. Seems better to remove the
 limitation and speed it up when more than one user is writing/editing, but
 not change the default frequency.

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


More information about the wp-trac mailing list