Cache的get_metadata
CI Cache的get_metadata似乎太短小了只返回的M时间和失效时间
=> 1335369752
=> 1335369752
改了下Cache_file
Line 158
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
);
}
返回
=> 1335369750
=> 300
=> foobarbaz!
=> 1335369752
=> 1335369752
不错!
页:
[1]