summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBurak Erdem <burakerdem@gmail.com>2012-02-06 16:28:33 +0100
committerBurak Erdem <burakerdem@gmail.com>2012-02-06 16:28:33 +0100
commit0b48dd40db6a9ddb1382c9e6a1eededf76182dfb (patch)
tree38016659b656e2676679b27bae3e7251e404896d
parent082a383a26f0f36685c6b5bdddc44f10eceafcb8 (diff)
Filesystem cache metadata function return correct TTL now.
-rw-r--r--system/libraries/Cache/drivers/Cache_file.php4
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
);
}