diff options
author | Burak Erdem <burakerdem@gmail.com> | 2012-02-06 16:28:33 +0100 |
---|---|---|
committer | Burak Erdem <burakerdem@gmail.com> | 2012-02-06 16:28:33 +0100 |
commit | 0b48dd40db6a9ddb1382c9e6a1eededf76182dfb (patch) | |
tree | 38016659b656e2676679b27bae3e7251e404896d /system/libraries/Cache/drivers/Cache_file.php | |
parent | 082a383a26f0f36685c6b5bdddc44f10eceafcb8 (diff) |
Filesystem cache metadata function return correct TTL now.
Diffstat (limited to 'system/libraries/Cache/drivers/Cache_file.php')
-rw-r--r-- | system/libraries/Cache/drivers/Cache_file.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Cache/drivers/Cache_file.php b/system/libraries/Cache/drivers/Cache_file.php index 4a81b0422..ff8895724 100644 --- a/system/libraries/Cache/drivers/Cache_file.php +++ b/system/libraries/Cache/drivers/Cache_file.php @@ -167,13 +167,13 @@ class CI_Cache_file extends CI_Driver { { $mtime = filemtime($this->_cache_path.$id); - if ( ! isset($data['data']['ttl'])) + if ( ! isset($data['ttl'])) { return FALSE; } return array( - 'expire' => $mtime + $data['data']['ttl'], + 'expire' => $mtime + $data['ttl'], 'mtime' => $mtime ); } |