cacheoutput : If the TTL is 0, disable the cache in file correctely
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1588 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -34,6 +34,8 @@ class cacheoutput
|
||||
$this->cacheCWD = getcwd();
|
||||
$cachemethod = "cache$method";
|
||||
$this->cache = new $cachemethod ();
|
||||
if ($ttl === 0)
|
||||
$this->cache->nocache = 1;
|
||||
$res = $this->cache->read ($id);
|
||||
// If there is a cache : display it
|
||||
if ($res !== false)
|
||||
|
||||
Reference in New Issue
Block a user