From 04369e6a68b144ed906ceb6c52fcbf84251eb19c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 16 Jul 2001 14:43:56 +0000 Subject: - cron.php: + potential improvement (thanks KJ) --- cron.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'cron.php') diff --git a/cron.php b/cron.php index e59c90e98..acfb9507d 100644 --- a/cron.php +++ b/cron.php @@ -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 -- cgit v1.2.3