From 61405b9934a37ff2f2b60547d31397deecb3b2a5 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 31 Jul 2013 03:23:22 +0000 Subject: [PATCH] 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 --- wp-includes/js/heartbeat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/js/heartbeat.js b/wp-includes/js/heartbeat.js index d5f38de052..8023600659 100644 --- a/wp-includes/js/heartbeat.js +++ b/wp-includes/js/heartbeat.js @@ -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--;