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

This commit is contained in:
Taylor Otwell
2011-07-07 07:41:39 -07:00
parent 577066e07e
commit a29e76f27b

View File

@@ -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));