From: Michael Date: Sun, 4 Mar 2018 13:01:46 +0000 (+0000) Subject: Bugfix: Don't cache when looking for maintenance mode X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=13df527d628b6b1628f2ae996856984337d4d589;p=friendica.git Bugfix: Don't cache when looking for maintenance mode --- diff --git a/scripts/worker.php b/scripts/worker.php index a821fc1abe..ba17750f05 100755 --- a/scripts/worker.php +++ b/scripts/worker.php @@ -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; } diff --git a/src/Core/Worker.php b/src/Core/Worker.php index f5979a82ab..7906f81059 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -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; }