Commit b806c1b0 authored by Dries's avatar Dries
Browse files

- Patch #259001 by paul.lovvik: drupal_cron_run should ignore a user abort.

parent c6c26b5e
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment