mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user