Improve cron locking. Avoid multiple cron processes looping over the same events. fixes #17462

git-svn-id: https://develop.svn.wordpress.org/trunk@18659 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-09-09 19:59:44 +00:00
parent d893b9568c
commit 332d6d1351
4 changed files with 71 additions and 17 deletions
+6
View File
@@ -268,6 +268,12 @@ function wp_functionality_constants( ) {
if ( !defined('WP_POST_REVISIONS') )
define('WP_POST_REVISIONS', true);
/**
* @since 3.3.0
*/
if ( !defined( 'WP_CRON_LOCK_TIMEOUT' ) )
define('WP_CRON_LOCK_TIMEOUT', 60); // In seconds
}
/**