if(file_exists($cachefile)) {
@$mktime = filemtime($cachefile); if($_SGLOBAL['timestamp'] - $mktime > $cachetime*60) { if(file_exists($lockfile)) { $writestate = false; @touch($lockfile); } } else { include_once($cachefile); $cachelost = false; } }}本文共 386 字,大约阅读时间需要 1 分钟。
if(file_exists($cachefile)) {
@$mktime = filemtime($cachefile); if($_SGLOBAL['timestamp'] - $mktime > $cachetime*60) { if(file_exists($lockfile)) { $writestate = false; @touch($lockfile); } } else { include_once($cachefile); $cachelost = false; } }}转载地址:http://jmrpa.baihongyu.com/