Xcache可以';当源代码发生更改时,不要重新加载php操作码


Xcache can't reload php opcode when source code changed

当php源代码发生更改时,Xcache或其他php操作码缓存能否自动重新加载php操作码?

大多数操作码缓存都有一个配置设置,用于确定是否应该为已更改的脚本刷新缓存项。通常,这将被设置为在开发环境中自动发生;但是进行检查会有开销,所以在生产环境中通常会禁用它。

xcache具有ttl设置,生产环境为0,否则在x秒后刷新

xcache.ttl 
    seconds Ttl (Time To Live) value for the php entry (cached opcodes of a file), 0=forever.