Browse Source

Bugfix: Don't cache when looking for maintenance mode

tags/3.6
Michael 2 years ago
parent
commit
13df527d62
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      scripts/worker.php
  2. +1
    -1
      src/Core/Worker.php

+ 1
- 1
scripts/worker.php View File

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



+ 1
- 1
src/Core/Worker.php View 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;
}


Loading…
Cancel
Save