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:
parent
d70307f8fe
commit
65b54d30d1
@ -74,3 +74,6 @@ $assets = [
|
||||
'print' => [],
|
||||
'js' => [],
|
||||
];
|
||||
|
||||
// Configura il limite di tempo di esecuzione del file cron.php
|
||||
$time_limit = '';
|
7
cron.php
7
cron.php
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user