开发者

Do I need to manually clear cached values in APC after source code changes

开发者 https://www.devze.com 2023-04-04 05:01 出处:网络
For example, for the follow code, if (apc_fetch(\'foo\') === false) { apc_add(\'foo\', \'bar\')开发者_JAVA百科;

For example, for the follow code,

if (apc_fetch('foo') === false) {
    apc_add('foo', 'bar')开发者_JAVA百科;
}

If I commit new code, replacing apc_add('foo', 'bar'); with apc_add('foo', 'no-bra');. Do I need to manually clear APC cache to avoid outdated cached value? Does the same rule apply to EAccelerator?


Yes there is nothing that is going to guess that you want to violate the rule of your cache setting routine. For development I typically put the apc.php script that comes with apc in webspace and use that for administration.

0

精彩评论

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

关注公众号