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
1 changed files with 3 additions and 1 deletions

View File

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