From 5cd5bca31e4abeb6e266380534f7af6c75b4e64d Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Fri, 7 Dec 2012 20:12:21 +0000 Subject: [PATCH] Cache the version information obtained from phpmyadmin.net --- version_check.php | 43 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/version_check.php b/version_check.php index d893b9daaf..f44ba7beb5 100644 --- a/version_check.php +++ b/version_check.php @@ -1,16 +1,47 @@ version) && strlen($data->date)) { + if ($save) { + $_SESSION['cache']['version_check'] = array( + 'response' => $response, + 'timestamp' => time() + ); + } + echo $response; } ?>