php ci框架 页面缓存

来源:互联网 发布:锐步椭圆机 知乎 编辑:程序博客网 时间:2024/06/05 11:35

在function 中添加缓存的时间

$this->output->cache($time);

$time 按照分钟计算,cache过期 重新自动缓存新的数据


cache 缓存可以自己删除 在function中添加下面语句

$this->output->delete_cache('/foo/bar');$this->output->delete_cache();


即可清除cache 页面缓存

原创粉丝点击