# CodeIgniter 清除缓存

**URL:** <https://www.isharkfly.com/t/codeigniter/3594>\
**Category:** PHP\
**Created:** [January 5, 2014, 7:41am UTC](https://www.isharkfly.com/t/codeigniter/3594 "2014-01-05T07:41:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [January 5, 2014, 7:41am UTC](https://www.isharkfly.com/t/codeigniter/3594/1 "2014-01-05T07:41:21Z")

</div>

如果你不再想使用缓存，仅需将上面的代码从你的controller里面删除即可。

注意: 这样做并不能让缓存文件立即消失，它将会自动过期并被删除。

如果你想立即删除那些文件，就必须自己动手了。

文件来源：[http://cwiki.ossez.com/pages/viewpage.action?pageId=2392263](http://cwiki.ossez.com/pages/viewpage.action?pageId=2392263)
