Commit a29e76f2 authored by Taylor Otwell's avatar Taylor Otwell

Force File cache driver to return null when items are expired.

parent 577066e0
......@@ -43,7 +43,9 @@ class File implements \System\Cache\Driver {
if (time() >= substr($cache, 0, 10))
{
return $this->forget($key);
$this->forget($key);
return null;
}
return $this->items[$key] = unserialize(substr($cache, 10));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment