mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Use transient for doing_cron. see #9048
git-svn-id: https://develop.svn.wordpress.org/trunk@10519 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -26,7 +26,7 @@ $crons = _get_cron_array();
|
||||
$keys = array_keys( $crons );
|
||||
|
||||
if (!is_array($crons) || $keys[0] > $local_time) {
|
||||
update_option('doing_cron', 0);
|
||||
set_transient('doing_cron', 0);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ foreach ($crons as $timestamp => $cronhooks) {
|
||||
}
|
||||
}
|
||||
|
||||
update_option('doing_cron', 0);
|
||||
set_transient('doing_cron', 0);
|
||||
|
||||
die();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user