|
CI Cache的get_metadata似乎太短小了
只返回的M时间和失效时间
[expire] => 1335369752
[mtime] => 1335369752
改了下Cache_file
Line 158
PHP复制代码 if (is_array($data))
{
$item = $data;
$data = $data['data'];
$mtime = filemtime($this->_cache_path .$id);
if ( ! isset($data['ttl']))
{
return FALSE;
}
return $item + array(
'expire' => $mtime + $data['ttl'],
'mtime' => $mtime
);
} 复制代码
返回
[time] => 1335369750
[ttl] => 300
[data] => foobarbaz!
[expire] => 1335369752
[mtime] => 1335369752
|
评分
-
查看全部评分
|