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

WordPress Trac noreply at wordpress.org
Tue Jan 29 23:09:53 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):

 The first run uses the JS global `pagenow` to identify from which screen
 the XHR was sent. That is different from the PHP global `$pagenow` (in JS
 it is `$current_screen->id;`). Will rename it to avoid confusion.

 Another consideration: if the user has two tabs open with the same admin
 screen, on the PHP side they all look the same. We can detect when a tab
 is hidden and throttle the requests, but we may still run into problems if
 several tabs are open (more than 10?). Should we make the "beat" very
 slow, perhaps every 2 min, or even pause it if the user is not on the
 browser tab?

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


More information about the wp-trac mailing list