]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Don't cache when looking for maintenance mode
authorMichael <heluecht@pirati.ca>
Sun, 4 Mar 2018 13:01:46 +0000 (13:01 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 4 Mar 2018 13:01:46 +0000 (13:01 +0000)
scripts/worker.php
src/Core/Worker.php

index a821fc1abecdbdd3f4dcf5a4d79733ed06414526..ba17750f053b33147e1c2ce4a3f3b5f87cbeaa44 100755 (executable)
@@ -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;
 }
 
index f5979a82ab9f4c697a91e0990fdc6b4a3022136b..7906f81059d33b1bdd0b8706ef9610eb51b8c942 100644 (file)
@@ -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;
                }