Mercurial > SimpleWebPresenter
diff Flag.inc @ 99:d98e315308cd
Improved caching of flag and sitemap.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Sun, 14 Sep 2014 21:11:27 +0200 |
| parents | f468365813c9 |
| children | f2996720e6d6 |
line wrap: on
line diff
--- a/Flag.inc Fri Oct 19 01:36:22 2012 +0200 +++ b/Flag.inc Sun Sep 14 21:11:27 2014 +0200 @@ -51,14 +51,14 @@ $this->name .= ".png"; $cache = new CacheTimeCheck($this->name); + $cache->setMaxAge(86400); $cache->addParent($masterCache); $this->setCache($cache); } function cacheCheck() { - $this->getCache()->cache_time($this->name); - return $true; + return Cacheable::YES; } function mayCompress()
