看技术文档的时候很多作者的警告明知很重要,但经常被我们当作耳边风。不是我们有意把它们忘记,只是很多事情只是经历过之后才能铭记在心。
============================================
APC will probably be 20-30% faster, but if you are writing to it frequently it can cause problems. The APC cache is best for things that change very rarely. And by very rarely I mean days, not hours or minutes.
Because of the way APC does an anonymous file-backed mmap where I unlink the file at startup to get process-death protection, it isn’t easy to get at the cache from a separate standalone command line script. That can be solved by mmap’ing slightly differently, but in the default config your approach won’t work.
-Rasmus
==============================================
apc不适合用于缓存经常改动的内容。如果你的代码经常改动,最好先禁用cache.或者修改后清空一下缓存。

第一次来看 谢谢博主分享