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:
2014-07-28 18:18:13 +00:00
parent b20c47c884
commit 8e5824a503

View File

@@ -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)