简体   繁体   中英

How to destroy the APC cache in YII

How can I destroy the APC cache in Yii . When I used this code:

Yii::app()->cache->destroy();

It gave me the following error:

CApcCache and its behaviors do not have a method or closure named "destroy".

Please help.

You could use flush() , to remove everything from cache. Like:

Yii::app()->cache->flush();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM