N°2240 - Supportability - Maintenance mode

This commit is contained in:
Eric
2019-11-07 15:23:42 +01:00
parent 2b2488f376
commit 9b14cd7633

View File

@@ -219,7 +219,7 @@ function CronExec($oP, $aProcesses, $bVerbose)
$oSearch = new DBObjectSearch('BackgroundTask'); $oSearch = new DBObjectSearch('BackgroundTask');
while (time() < $iTimeLimit) while (time() < $iTimeLimit)
{ {
// Maintenance or ReadOnly mode // Verify files instead of reloading the full config each time
if (file_exists(MAINTENANCE_MODE_FILE) || file_exists(READONLY_MODE_FILE)) if (file_exists(MAINTENANCE_MODE_FILE) || file_exists(READONLY_MODE_FILE))
{ {
$oP->p("Maintenance detected, exiting"); $oP->p("Maintenance detected, exiting");