diff --git a/config.example.php b/config.example.php index 2c6c619bf..e3b133c06 100755 --- a/config.example.php +++ b/config.example.php @@ -76,4 +76,4 @@ $assets = [ ]; // Configura il limite di tempo di esecuzione del file cron.php -$time_limit = ''; \ No newline at end of file +$php_time_limit = ''; \ No newline at end of file diff --git a/cron.php b/cron.php index 2a00f40d4..4dc78845f 100644 --- a/cron.php +++ b/cron.php @@ -33,12 +33,8 @@ use Monolog\Logger; use Tasks\Task; // Rimozione delle limitazioni sull'esecuzione -if ($config['time_limit']) { - $time_limit = $config['time_limit']; -} else { - $time_limit = 86400; -} -set_time_limit($time_limit); +$php_time_limit = $config['php_time_limit'] ?? 86400; +set_time_limit($php_time_limit); ignore_user_abort(true); // Chiusura della richiesta alla pagina