Mercurial > SimpleWebPresenter
comparison FileCacheSet.inc @ 90:aafc23919e79
Validating errorPage.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Wed, 17 Oct 2012 21:23:02 +0200 |
| parents | 1d5166aba2c5 |
| children | d98e315308cd |
comparison
equal
deleted
inserted
replaced
| 89:fd39d7d5e9be | 90:aafc23919e79 |
|---|---|
| 64 */ | 64 */ |
| 65 function cache_time($path) | 65 function cache_time($path) |
| 66 { | 66 { |
| 67 if (!file_exists($path)) { | 67 if (!file_exists($path)) { |
| 68 Logger::warn("${path} does not exist"); | 68 Logger::warn("${path} does not exist"); |
| 69 errorPage("Resource is not available"); | 69 errorPage("Resource is not available", 404); |
| 70 } | 70 } |
| 71 | 71 |
| 72 array_push($this->files, $path); | 72 array_push($this->files, $path); |
| 73 $mtime = filemtime($path); | 73 $mtime = filemtime($path); |
| 74 if ($mtime > $this->newest) { | 74 if ($mtime > $this->newest) { |
