]> git.mxchange.org Git - friendica.git/commitdiff
Automatically refresh after two minutes when system is overloaded
authorMichael Vogel <icarus@dabo.de>
Sat, 2 Jul 2016 22:26:00 +0000 (00:26 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 2 Jul 2016 22:26:00 +0000 (00:26 +0200)
index.php

index 87b32fd412a2eab7ef97d09fd837720d8697c711..7b41403351610a8f8d899ee622c071ea120e8ead 100644 (file)
--- 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");
        }