From: Michael Vogel Date: Sat, 2 Jul 2016 22:26:00 +0000 (+0200) Subject: Automatically refresh after two minutes when system is overloaded X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0ed93df91fcf6cfc1d65ee3e013e4f79eae55ef7;p=friendica.git Automatically refresh after two minutes when system is overloaded --- diff --git a/index.php b/index.php index 87b32fd412..7b41403351 100644 --- a/index.php +++ b/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"); }