Mercurial > SimpleWebPresenter
comparison Flag.inc @ 110:6f5939bf53c3
Set flag cache expiry time to today + 30 days
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Tue, 08 Mar 2016 00:43:48 +0100 |
| parents | f2996720e6d6 |
| children | 16c3ee204330 |
comparison
equal
deleted
inserted
replaced
| 109:812b0cfa999f | 110:6f5939bf53c3 |
|---|---|
| 53 if (file_exists($this->name)) | 53 if (file_exists($this->name)) |
| 54 break; | 54 break; |
| 55 } | 55 } |
| 56 | 56 |
| 57 $cache = new CacheTimeCheck($this->name); | 57 $cache = new CacheTimeCheck($this->name); |
| 58 $cache->setMaxAge(86400); | 58 $cache->setMaxAge(30*86400); |
| 59 $cache->addParent($masterCache); | 59 $cache->addParent($masterCache); |
| 60 $this->setCache($cache); | 60 $this->setCache($cache); |
| 61 } | 61 } |
| 62 | 62 |
| 63 function cacheCheck() | 63 function cacheCheck() |
