Add comment to cache file driver.

This commit is contained in:
Taylor Otwell 2011-08-02 11:57:01 -05:00
parent 7e28433a61
commit 5f0ffe135d
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ public function get($key)
$cache = file_get_contents(CACHE_PATH.$key);
// 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);