PHP Yii清理缓存的实现方法
html:
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();
}
下一篇:PHP模拟http请求的方法