summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortianhe1986 <w1s2j3229@163.com>2016-08-11 06:54:15 +0200
committertianhe1986 <w1s2j3229@163.com>2016-08-11 06:54:15 +0200
commit4c8a0eb32c2aa94eb621171a89084f1388e3c4c5 (patch)
treefdee18a2d7aa706f8b6208dad9d9bc0edaeeecba
parentc4bd43432df03e4f4835c7689c8ed722cd2c3020 (diff)
Cache_file: use $data['time'] for calculating expired time.
Signed-off-by: tianhe1986 <w1s2j3229@163.com>
-rw-r--r--system/libraries/Cache/drivers/Cache_file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Cache/drivers/Cache_file.php b/system/libraries/Cache/drivers/Cache_file.php
index e1ce16a5a..c46de2f95 100644
--- a/system/libraries/Cache/drivers/Cache_file.php
+++ b/system/libraries/Cache/drivers/Cache_file.php
@@ -233,7 +233,7 @@ class CI_Cache_file extends CI_Driver {
}
return array(
- 'expire' => $mtime + $data['ttl'],
+ 'expire' => $data['time'] + $data['ttl'],
'mtime' => $mtime
);
}