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

- cron.php:
    + potential improvement (thanks KJ)
parent 85341253
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -2,6 +2,20 @@
include_once "includes/common.inc";
foreach (module_list() as $module) module_invoke($module, "cron");
/*
** If not in 'safe mode', increase the maximum execution time:
*/
if (!get_cfg_var("safe_mode")) {
set_time_limit(180);
}
/*
** Iterate through the modules calling their cron handlers (if any):
*/
foreach (module_list() as $module) {
module_invoke($module, "cron");
}
?>
\ No newline at end of file
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