Skip to content
Snippets Groups Projects
Commit b806c1b0 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent c6c26b5e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment