Merge pull request #2661 from annando/1607-refresh

Automatically refresh after two minutes when system is overloaded
This commit is contained in:
Tobias Diekershoff 2016-07-03 06:24:27 +02:00 committed by GitHub
commit c772edc313

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");
}