Heartbeat: Reduce the heartbeat from 120 sec to 100 sec when the window doesn't have the focus, to be shorter than the post lock expiration window.

props azaozz.
fixes #24894.



git-svn-id: https://develop.svn.wordpress.org/trunk@24908 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-07-31 03:23:22 +00:00
parent 0a739e4ae0
commit 61405b9934
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ window.wp = window.wp || {};
return;
if ( ! hasFocus ) {
t = 120000; // 2 min
t = 100000; // 100 sec. Post locks expire after 120 sec.
} else if ( countdown > 0 && tempInterval ) {
t = tempInterval;
countdown--;