From 11501d8e0baaff580f4dedc68b3e5c11032735fa Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 25 Feb 2023 15:08:35 -0500 Subject: [PATCH] Set Sleep from 2 secs to 1 sec after updates Initially this was to fix database update not showing up after update. The Time limit of 2 secs seemed to fix the issue but we will try 1 sec --- post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post.php b/post.php index 49b2bdc8..e583a8b8 100644 --- a/post.php +++ b/post.php @@ -1750,7 +1750,7 @@ if(isset($_GET['update'])){ $_SESSION['alert_message'] = "Update successful"; - sleep(2); + sleep(1); header("Location: " . $_SERVER["HTTP_REFERER"]); @@ -1771,7 +1771,7 @@ if(isset($_GET['update_db'])){ $_SESSION['alert_message'] = "Database structure update successful"; - sleep(2); + sleep(1); header("Location: " . $_SERVER["HTTP_REFERER"]); }