<?php define("_cachepath_","./cache/"); define("_cacheenable_","1"); define("_recachetime_","43200"); include('cache.php'); $cache=new cache(); if ($cache->check()) { $template=$cache->read(); }else { ob_start(); ob_implicit_flush(0); ?> 页面内容。。。。 <?php $template = ob_get_contents(); $cache->write($template); } ?> |