diff cache_check.inc @ 16:a64e8f968e7e

Fast abort if cachehit.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Wed, 19 Sep 2012 14:31:02 +0200
parents f51be7b9711a
children 75ab765300d1
line wrap: on
line diff
--- a/cache_check.inc	Wed Sep 19 14:17:35 2012 +0200
+++ b/cache_check.inc	Wed Sep 19 14:31:02 2012 +0200
@@ -15,4 +15,11 @@
   }
   header("Last-Modified: $gmdate_mod");
 }
+
+function cache_time($path) {
+  $mtime = filemtime($path);
+  if ($mtime > $newest) {
+    $newest = $mtime;
+  }
+}
 ?>
\ No newline at end of file