From 796c0242492a85ec99e582ea36af5b73c331e251 Mon Sep 17 00:00:00 2001 From: spaghetti Date: Fri, 16 Dec 2016 02:59:15 -0500 Subject: [PATCH] Found even more static changes --- design/publicheader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/design/publicheader.php b/design/publicheader.php index ebb06fb..1078cab 100755 --- a/design/publicheader.php +++ b/design/publicheader.php @@ -12,9 +12,9 @@ define('FOOTER_FILE',SERVER_ROOT.'/design/publicfooter.php'); get_value("script_stats_$Script")) === false || $ScriptStats['mtime'] != filemtime(STATIC_SERVER."functions/$Script.js")) { - $ScriptStats['mtime'] = filemtime(STATIC_SERVER."functions/$Script.js"); - $ScriptStats['hash'] = base64_encode(hash_file(INTEGRITY_ALGO, STATIC_SERVER."functions/$Script.js", true)); + if (($ScriptStats = G::$Cache->get_value("script_stats_$Script")) === false || $ScriptStats['mtime'] != filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js")) { + $ScriptStats['mtime'] = filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js"); + $ScriptStats['hash'] = base64_encode(hash_file(INTEGRITY_ALGO, SERVER_ROOT.STATIC_SERVER."functions/$Script.js", true)); $ScriptStats['algo'] = INTEGRITY_ALGO; G::$Cache->cache_value("script_stats_$Script", $ScriptStats); }