- Patch #259001 by paul.lovvik: drupal_cron_run should ignore a user abort.
parent
c6c26b5e23
commit
b806c1b03b
|
@ -2502,10 +2502,11 @@ function page_set_cache() {
|
|||
* Returns TRUE if ran successfully
|
||||
*/
|
||||
function drupal_cron_run() {
|
||||
// If not in 'safe mode', increase the maximum execution time:
|
||||
if (!ini_get('safe_mode')) {
|
||||
set_time_limit(240);
|
||||
}
|
||||
// Allow execution to continue even if the request gets canceled.
|
||||
@ignore_user_abort(TRUE);
|
||||
|
||||
// Increase the maximum execution time.
|
||||
@set_time_limit(240);
|
||||
|
||||
// Fetch the cron semaphore
|
||||
$semaphore = variable_get('cron_semaphore', FALSE);
|
||||
|
|
Loading…
Reference in New Issue