Make WordPress Core


Ignore:
Timestamp:
09/09/2011 07:59:44 PM (15 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-constants.php

    r18545 r18659  
    269269        if ( !defined('WP_POST_REVISIONS') )
    270270                define('WP_POST_REVISIONS', true);
     271
     272        /**
     273         * @since 3.3.0
     274         */
     275        if ( !defined( 'WP_CRON_LOCK_TIMEOUT' ) )
     276                define('WP_CRON_LOCK_TIMEOUT', 60);  // In seconds
    271277}
    272278
Note: See TracChangeset for help on using the changeset viewer.