简体   繁体   English

如何在YII中销毁APC缓存

[英]How to destroy the APC cache in YII

How can I destroy the APC cache in Yii . 如何在Yii中销毁APC缓存。 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. 您可以使用flush()从缓存中删除所有内容。 Like: 喜欢:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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