开发者

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

开发者 https://www.devze.com 2022-12-08 08:40 出处:网络
For Zend_Cache_Frontend_Core you can define a lifetime and, according to the documentation, a \"automatic_cleaning_factor\".

For Zend_Cache_Frontend_Core you can define a lifetime and, according to the documentation, a "automatic_cleaning_factor".

According to the manual, this p开发者_如何学JAVAroperty 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?

Or did I misunderstand something there?


APC can do two things - cache php opcodes, and cache user (applicaton data). 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号