Browse Source

Automatically refresh after two minutes when system is overloaded

pull/2661/head
Michael Vogel 5 years ago
parent
commit
0ed93df91f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      index.php

+ 2
- 1
index.php View File

@ -59,7 +59,8 @@ if(!$install) {
if ($a->max_processes_reached() OR $a->maxload_reached()) {
header($_SERVER["SERVER_PROTOCOL"].' 503 Service Temporarily Unavailable');
header('Retry-After: 300');
header('Retry-After: 120');
header('Refresh: 120; url='.$a->get_baseurl()."/".$a->query_string);
die("System is currently unavailable. Please try again later");
}


Loading…
Cancel
Save