diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-12 02:41:42 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-12 02:41:42 +0200 |
commit | 187742ca22bf97bd31c1e3557c167d8ec450cd89 (patch) | |
tree | 579e473331dfd817f445644b21f06ab3a2cbd458 /system/libraries/Cache/drivers/Cache_file.php | |
parent | 782de1101f37b21ff2183fde5b2ed8569d8c287d (diff) | |
parent | 0b48dd40db6a9ddb1382c9e6a1eededf76182dfb (diff) |
Merge pull request #1017 from burakerdem/patch-1
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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/libraries/Cache/drivers/Cache_file.php b/system/libraries/Cache/drivers/Cache_file.php index 5170de821..1b57c8929 100644 --- a/system/libraries/Cache/drivers/Cache_file.php +++ b/system/libraries/Cache/drivers/Cache_file.php @@ -171,13 +171,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 ); } @@ -202,4 +202,4 @@ class CI_Cache_file extends CI_Driver { } /* End of file Cache_file.php */ -/* Location: ./system/libraries/Cache/drivers/Cache_file.php */
\ No newline at end of file +/* Location: ./system/libraries/Cache/drivers/Cache_file.php */ |