我想删除所有以字符串为前缀的缓存条目,但是我的代码返回:
Fatal error: Call to undefined method Doctrine\Common\Cache\FilesystemCache::deleteByPrefix()
而我的代码是
$deleted = $cachemanager->deleteByPrefix('catalog_');
就像我在哪里检查的:进入该学说的文档http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/caching.html#deleting。
由于控制器而不是CLI,我需要清除缓存...
是否有人可以替代此方法'deleteByPrefix()'?
最后,我来使用Zend Framework缓存捆绑包,该捆绑包允许按前缀删除...
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句