From 5770697411ea49848b6243f40e3cbffac871eaae Mon Sep 17 00:00:00 2001 From: Daniel Kahl Date: Sat, 17 Sep 2016 21:32:26 +0200 Subject: [PATCH] #no-ticket * allow infinity caches --- src/CacheElement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CacheElement.php b/src/CacheElement.php index 9d4fbcf..777f07f 100644 --- a/src/CacheElement.php +++ b/src/CacheElement.php @@ -108,7 +108,7 @@ public function removeFromFs() */ public function isAlive() { - return (time() - $this->_start) <= $this->_lifetime; + return $this->_lifetime == -1 || (time() - $this->_start) <= $this->_lifetime; } /**