Fix expire bug

This commit is contained in:
Dennis Eichhorn 2016-10-31 11:49:04 +01:00
parent dd04acdb59
commit f051043421

View File

@ -284,7 +284,7 @@ class FileCache implements CacheInterface
$created = Directory::created($path)->getTimestamp();
$now = time();
if ($expire >= 0 && $created + $expire > $now) {
if ($expire >= 0 && $created + $expire < $now) {
return null;
}