Changeset 9403 for trunk/wp-includes/cron.php
- Timestamp:
- 10/29/2008 08:26:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cron.php
r9181 r9403 25 25 if ( $next && $next <= $timestamp + 600 ) 26 26 return; 27 27 28 28 $crons = _get_cron_array(); 29 29 $key = md5(serialize($args)); … … 179 179 return; 180 180 181 $cron_url = get_option( 'siteurl' ) . '/wp-cron.php?check=' . wp_hash('187425'); 181 // WPCOM: Use SERVER_ADDR 182 //$cron_url = get_option( 'siteurl' ) . '/wp-cron.php?check=' . wp_hash('187425'); 183 $cron_url = 'http://' . $_SERVER['SERVER_ADDR'] . '/wp-cron.php?check=' . wp_hash('187425'); 182 184 /* 183 185 * multiple processes on multiple web servers can run this code concurrently … … 188 190 // clean up potential invalid value resulted from various system chaos 189 191 if ( $flag != 0 ) { 190 191 192 193 194 } 195 196 192 if ( $flag > $local_time + 10*60 || $flag < $local_time - 10*60 ) { 193 update_option('doing_cron', 0); 194 $flag = 0; 195 } 196 } 197 198 //don't run if another process is currently running it 197 199 if ( $flag > $local_time ) 198 200 return;
Note: See TracChangeset
for help on using the changeset viewer.