Home >Backend Development >PHP Tutorial >How to clear cache in Yii
The example in this article describes how to clear the cache in Yii. Share it with everyone for your reference, the details are as follows:
html:
Copy the code The code is as follows:
php:
public function actionClear() { Yii::app()->cache->flush(); }I hope this article will be useful to everyone based on the Yii framework PHP programming helps.
The above introduces the method of clearing the cache in Yii, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.