Add comment to cache file driver.
This commit is contained in:
2
system/cache/file.php
vendored
2
system/cache/file.php
vendored
@@ -29,6 +29,8 @@ class File implements Driver {
|
|||||||
|
|
||||||
$cache = file_get_contents(CACHE_PATH.$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))
|
if (time() >= substr($cache, 0, 10))
|
||||||
{
|
{
|
||||||
$this->forget($key);
|
$this->forget($key);
|
||||||
|
|||||||
Reference in New Issue
Block a user