comparison cache_check.inc @ 17:75ab765300d1

Fix error which caused mtime for html files not to be updated.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Wed, 19 Sep 2012 14:40:00 +0200
parents a64e8f968e7e
children d5068ced2ad1
comparison
equal deleted inserted replaced
16:a64e8f968e7e 17:75ab765300d1
15 } 15 }
16 header("Last-Modified: $gmdate_mod"); 16 header("Last-Modified: $gmdate_mod");
17 } 17 }
18 18
19 function cache_time($path) { 19 function cache_time($path) {
20 global $newest;
20 $mtime = filemtime($path); 21 $mtime = filemtime($path);
21 if ($mtime > $newest) { 22 if ($mtime > $newest) {
23 print $newest;
22 $newest = $mtime; 24 $newest = $mtime;
23 } 25 }
24 } 26 }
25 ?> 27 ?>