Merge pull request #4544 from annando/no-cache-maintenance

Bugfix: Don't cache when looking for maintenance mode
This commit is contained in:
Hypolite Petovan 2018-03-04 08:29:33 -05:00 committed by GitHub
commit c9d403bcb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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;
} }

View file

@ -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;
} }