Changeset 10519
- Timestamp:
- 02/06/2009 10:25:35 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-cron.php (modified) (2 diffs)
-
wp-includes/cron.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-cron.php
r10472 r10519 27 27 28 28 if (!is_array($crons) || $keys[0] > $local_time) { 29 update_option('doing_cron', 0);29 set_transient('doing_cron', 0); 30 30 return; 31 31 } … … 54 54 } 55 55 56 update_option('doing_cron', 0);56 set_transient('doing_cron', 0); 57 57 58 58 die(); -
trunk/wp-includes/cron.php
r10474 r10519 185 185 * try to make this as atomic as possible by setting doing_cron switch 186 186 */ 187 $flag = get_ option('doing_cron');187 $flag = get_transient('doing_cron'); 188 188 189 189 // clean up potential invalid value resulted from various system chaos 190 190 if ( $flag != 0 ) { 191 191 if ( $flag > $local_time + 10*60 || $flag < $local_time - 10*60 ) { 192 update_option('doing_cron', 0);192 set_transient('doing_cron', 0); 193 193 $flag = 0; 194 194 } … … 199 199 return; 200 200 201 update_option( 'doing_cron', $local_time + 30 );201 set_transient( 'doing_cron', $local_time + 30 ); 202 202 203 203 add_action('wp_head', 'spawn_cron_request');
Note: See TracChangeset
for help on using the changeset viewer.