There was an error while loading. Please reload this page.
1 parent 65b54d3 commit e15fb24Copy full SHA for e15fb24
2 files changed
config.example.php
@@ -76,4 +76,4 @@
76
];
77
78
// Configura il limite di tempo di esecuzione del file cron.php
79
-$time_limit = '';
+$php_time_limit = '';
cron.php
@@ -33,12 +33,8 @@
33
use Tasks\Task;
34
35
// Rimozione delle limitazioni sull'esecuzione
36
-if ($config['time_limit']) {
37
- $time_limit = $config['time_limit'];
38
-} else {
39
- $time_limit = 86400;
40
-}
41
-set_time_limit($time_limit);
+$php_time_limit = $config['php_time_limit'] ?? 86400;
+set_time_limit($php_time_limit);
42
ignore_user_abort(true);
43
44
// Chiusura della richiesta alla pagina
0 commit comments