Bugfix: Don't cache when looking for maintenance mode
This commit is contained in:
parent
45a9902c83
commit
13df527d62
|
@ -37,7 +37,7 @@ Config::load();
|
||||||
check_db(true);
|
check_db(true);
|
||||||
|
|
||||||
// Quit when in maintenance
|
// Quit when in maintenance
|
||||||
if (Config::get('system', 'maintenance', true)) {
|
if (Config::get('system', 'maintenance', false, true)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -201,7 +201,7 @@ class Worker
|
||||||
$mypid = getmypid();
|
$mypid = getmypid();
|
||||||
|
|
||||||
// Quit when in maintenance
|
// Quit when in maintenance
|
||||||
if (Config::get('system', 'maintenance', true)) {
|
if (Config::get('system', 'maintenance', false, true)) {
|
||||||
logger("Maintenance mode - quit process ".$mypid, LOGGER_DEBUG);
|
logger("Maintenance mode - quit process ".$mypid, LOGGER_DEBUG);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user