diff --git a/static-main.php b/static-main.php index b069b0ec4..91564aaf6 100644 --- a/static-main.php +++ b/static-main.php @@ -14,6 +14,7 @@ */ $cacheOn = true; +$cacheDebug = false; $hostmapLocation = '../subsites/host-map.php'; if ($cacheOn) { @@ -38,10 +39,12 @@ if ($cacheOn) { } elseif (file_exists('../cache/'.$cacheDir.$file.'.php')) { header('X-cache: hit at '.date('r')); include_once '../cache/'.$cacheDir.$file.'.php'; + if ($cacheDebug) echo "

File was cached

"; } else { header('X-cache: miss at '.date('r') . ' on ' . $cacheDir . $file); // No cache hit... fallback!!! include 'main.php'; + if ($cacheDebug) echo "

File was !NOT! cached

"; } } else { include 'main.php';