简体   繁体   English

Zend缓存核心和APC-我不了解旧的缓存条目如何失效

[英]Zend Cache Core and APC - I don't understand how old cache entries get invalidated

For Zend_Cache_Frontend_Core you can define a lifetime and, according to the documentation, a "automatic_cleaning_factor". 对于Zend_Cache_Frontend_Core,您可以定义生存期,并根据文档定义“ automatic_cleaning_factor”。

According to the manual, this property specifies on how many writes to the cache old cache entries get invalid. 根据手册,此属性指定对旧缓存条目无效的缓存写入次数。

When I use APC as backend shouldn't the cache invalidate itself automatically without having to write to the cache? 当我使用APC作为后端时,缓存是否不必在不写入缓存的情况下自动使自身失效?

Or did I misunderstand something there? 还是我误会了那里的东西?

APC can do two things - cache php opcodes, and cache user (applicaton data). APC可以做两件事-缓存php操作码和缓存用户(applicaton数据)。 It will automatically purge stale opcode cache entries (by checking file modified times) but it has no way to automatically delete your cache entries. 它会自动清除陈旧的操作码缓存条目(通过检查文件修改时间),但是无法自动删除缓存条目。

You must specify entries to remove and manage this in your application. 您必须指定条目以在应用程序中删除和管理此条目。

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

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