您好,欢迎访问一九零五行业门户网

Yii清理缓存的方法_PHP

本文实例讲述了yii清理缓存的方法。分享给大家供大家参考,具体如下:
html:
代码如下:
clearcache
js:
function clearcache(){ $.get('../eng/index.php?r=site/clear&'+new date().gettime(),function(){ alert('clear eng cache ok.'); });}
php:
public function actionclear(){ yii::app()->cache->flush();}
希望本文所述对大家基于yii框架的php程序设计有所帮助。
其它类似信息

推荐信息