1
1
Fork 0

Automatically refresh after two minutes when system is overloaded

This commit is contained in:
Michael Vogel 2016-07-03 00:26:00 +02:00
parent ce64955fe0
commit 0ed93df91f

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