From 8e5824a50314849a16c3efcc1e1224fbd5cf3b86 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 28 Jul 2014 18:18:13 +0000 Subject: [PATCH] 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 --- cacheoutput.php | 2 ++ 1 file changed, 2 insertions(+) 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)