标签:
1.S方法缓存设置
if(!$rows = S(‘indexBlog‘)){ //*$rows = S(‘indexBlog‘) $rows = D(‘blog‘)->select(); S(‘indexBlog‘,$rows,10); } $this->assign(‘rows‘,$rows); //$rows = S(‘indexBlog‘) $this->display();
2.静态缓存
3.局部缓存
标签:
原文地址:http://www.cnblogs.com/subtract/p/4293973.html