Bugfix: Don't cache when looking for maintenance mode

这个提交包含在:
Michael 2018-03-04 13:01:46 +00:00
父节点 45a9902c83
当前提交 13df527d62
共有 2 个文件被更改,包括 2 次插入2 次删除

查看文件

@ -37,7 +37,7 @@ Config::load();
check_db(true);
// Quit when in maintenance
if (Config::get('system', 'maintenance', true)) {
if (Config::get('system', 'maintenance', false, true)) {
return;
}

查看文件

@ -201,7 +201,7 @@ class Worker
$mypid = getmypid();
// 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);
return false;
}