if ($this->tag && !is_file($filename)) {
$first = true;
}
$data = serialize($value);
if ($this->options['data_compress'] && function_exists('gzcompress')) {
//数据压缩
$data = gzcompress($data, 3);
}
$data = "<?php\n//" . sprintf('%012d', $expire) . $data . "\n?>";
$result = file_put_contents($filename, $data);
if ($result) {
isset($first) && $this->setTagItem($filename);
clearstatcache();
return true;
} else {
return false;
}
}
name | urllist |
value | [] |
expire | 7200 |
filename | C:\zhan\mascaiwu_xin\caches\cache\aa\6c4ce6cbcb330f7a953e68e9424a83.php |
data | <?php //000000007200a:0:{} ?> |