简体   繁体   English

清除单个域或目录的APC缓存

[英]Clear APC cache for single domain or directory

On my server I have multiple sites and I have APC configured with stat = 0 . 在我的服务器上,我有多个站点,并且APC配置为stat = 0

Is there a way, when I deploy newer version of code, to clear the APC cache for every file a host or a directory on the server? 当我部署较新版本的代码时,是否有办法清除服务器上主机或目录中每个文件的APC缓存?

You can manipulate and delete single entries via php or the apc admin, but this might get tedious if you have many entries. 您可以通过php或apc管理员操作和删除单个条目,但是如果您有很多条目,这可能会变得很乏味。

So you will be left with the option to delete everything, which is not what you want, I'm guessing. 因此,我猜测您将拥有删除所有内容的选项,这不是您想要的。 To only delete the entries of one specific domain, you need to run differen apc instances. 要仅删除一个特定域的条目,您需要运行不同的apc实例。 This is highly recommende anyway, since you can't guarantuee they don't overwrite each others data otherwise. 无论如何,强烈建议这样做,因为您无法保证它们不会覆盖彼此的数据。

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

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