1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-08 15:48:45 +01:00

Aggiunta impostazione limite di tempo esecuzione cron.php da config

This commit is contained in:
valentina 2024-10-03 16:11:36 +02:00
parent d70307f8fe
commit 65b54d30d1
2 changed files with 9 additions and 1 deletions

View File

@ -74,3 +74,6 @@ $assets = [
'print' => [],
'js' => [],
];
// Configura il limite di tempo di esecuzione del file cron.php
$time_limit = '';

View File

@ -33,7 +33,12 @@ use Monolog\Logger;
use Tasks\Task;
// Rimozione delle limitazioni sull'esecuzione
set_time_limit(0);
if ($config['time_limit']) {
$time_limit = $config['time_limit'];
} else {
$time_limit = 86400;
}
set_time_limit($time_limit);
ignore_user_abort(true);
// Chiusura della richiesta alla pagina