Browse Source

Merge pull request #2661 from annando/1607-refresh

Automatically refresh after two minutes when system is overloaded
pull/2662/head
Tobias Diekershoff 6 years ago
committed by GitHub
parent
commit
c772edc313
  1. 3
      index.php

3
index.php

@ -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