From 0ed93df91fcf6cfc1d65ee3e013e4f79eae55ef7 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 3 Jul 2016 00:26:00 +0200 Subject: [PATCH] Automatically refresh after two minutes when system is overloaded --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); } -- 2.39.5