diff --git a/cacheoutput.php b/cacheoutput.php index 9496117..d58b9a6 100644 --- a/cacheoutput.php +++ b/cacheoutput.php @@ -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)