Skip to content

Commit

Permalink
#no-ticket
Browse files Browse the repository at this point in the history
* allow infinity caches
  • Loading branch information
dantodev committed Sep 17, 2016
1 parent f26f87d commit 5770697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CacheElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 5770697

Please sign in to comment.