$cachefile="index_cache.html"; if(file_exists($cachefile)){; $cache=file_get_contents($cachefile); $now=time(); $cachetime=explode("[cachetime]",$cache); if(count($cachetime)<=1) unset($cache); if(!empty($cache)) if( ($now-$cachetime[1]) > (60*60*1)) unset($cache);//4是指小時 } if(!empty($cache)){ echo $cache; exit; } ob_start(); ?> include_once("inc.php"); include_once("incnews.php"); ?>