Merge pull request #2661 from annando/1607-refresh
Automatically refresh after two minutes when system is overloaded
This commit is contained in:
commit
c772edc313
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue