Commit e81dd68a authored by Taylor Otwell's avatar Taylor Otwell

Refactoring file cache driver.

parent fa3ec4d7
......@@ -31,12 +31,7 @@ class File implements Driver {
// The cache expiration date is stored as a UNIX timestamp at the beginning
// of the cache file. We'll extract it out and check it here.
if (time() >= substr($cache, 0, 10))
{
$this->forget($key);
return null;
}
if (time() >= substr($cache, 0, 10)) return $this->forget($key);
return 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