本帖最后由 orclord 于 2009-5-8 15:18 编辑 $smarty->caching = true;//缓存页面
$smarty->cache_lifetime= 86400;//缓存页面
$smarty->cache_dir = './cache/';
$smarty->display('huanqiu.html');这几步都到位了,缓存文件也出来,但是呢,执行这个PHP的速度还是很慢(估计有3-5秒),是不是没直接读写缓存啊?我郁闷,谢谢大家帮我看看
$smarty->cache_lifetime= 86400;//缓存页面
$smarty->cache_dir = './cache/';
$smarty->display('huanqiu.html');这几步都到位了,缓存文件也出来,但是呢,执行这个PHP的速度还是很慢(估计有3-5秒),是不是没直接读写缓存啊?我郁闷,谢谢大家帮我看看
..........................................
}
$smarty->display('huanqiu.html');
搞错了,GG上怎么也查不到,还是BBS实惠啊,哈哈
是PHPCHINA.COM上别人回答我的,有需要的也看一下好了:)