[wp-trac] [WordPress Trac] #23216: Create "WP Heartbeat" API

WordPress Trac noreply at wordpress.org
Mon Apr 15 20:10:13 UTC 2013


#23216: Create "WP Heartbeat" API
----------------------------+------------------
 Reporter:  azaozz          |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.6
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  autosave-redo   |
----------------------------+------------------

Comment (by azaozz):

 > As I read the code on the original submission, the heartbeat runs
 always, regardless of whether it has any consumers using it.

 Yes, currently 'heartbeat' is loaded everywhere in the admin and used by
 the login expiration warnings. Potentially we could be doing these
 warnings only on screens that need them most, like the Edit Post screen,
 all settings screens, etc.

 Heartbeat runs on a 15 sec. interval only when the browser window is in
 focus and the user is active. If the window is "blurred" or there aren't
 any mouse and keyboard activities for 5 min, that interval drops to 2 min.

 There will probably be some impact but as far as I see it's going to be
 insignificant. Not sure why your test "server" is performing so poorly.
 With the exception of the Edit Post screen, most users generally spend
 little time on most admin screens, a distant second is the Comments
 screen. So even if we load heartbeat only on the Edit Post screen (where
 it's most used atm) the impact wouldn't change.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23216#comment:60>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list