Force File cache driver to return null when items are expired.
This commit is contained in:
parent
577066e07e
commit
a29e76f27b
|
@ -43,7 +43,9 @@ public function get($key)
|
||||||
|
|
||||||
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));
|
||||||
|
|
Loading…
Reference in New Issue