Force File cache driver to return null when items are expired.
This commit is contained in:
4
system/cache/driver/file.php
vendored
4
system/cache/driver/file.php
vendored
@@ -43,7 +43,9 @@ class File implements \System\Cache\Driver {
|
|||||||
|
|
||||||
if (time() >= substr($cache, 0, 10))
|
if (time() >= substr($cache, 0, 10))
|
||||||
{
|
{
|
||||||
return $this->forget($key);
|
$this->forget($key);
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->items[$key] = unserialize(substr($cache, 10));
|
return $this->items[$key] = unserialize(substr($cache, 10));
|
||||||
|
|||||||
Reference in New Issue
Block a user