我们需要在新版本部署应用程序后重新启动apache + APC? [英] do we need to restart apache + APC after new version deployment of app?

查看:136
本文介绍了我们需要在新版本部署应用程序后重新启动apache + APC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们部署我们的应用程序时,我们只需创建一个新文件夹并指向一个符号链接,因此apache将始终找到最新版本。

when we deploy our app, we simply create a new folder and point a symbolic link to it, so apache will always find its way to the latest build.

但是,当我们部署并继续测试时,我们会发现奇怪的错误,而无需重新启动apache服务器。我们也有APC运行,并有一种感觉缓存与此有关。

However, we get strange errors when we deploy and continue testing without first rebooting the apache server. We also have APC running and have a feeling that caching has something to do with this.

在部署新版本的PHP时需要重新启动apache是​​很正常的当APC活跃时应用?还是有更好的方法,例如使用shell脚本清除APC缓存?

Is it normal that an apache restart is required when deploying a new version of our php application when APC is active? Or is there a better way, e.g. clearing the APC cache using a shell script?

推荐答案

可以使用 apc_clear_cache()

查看相关问题:

如何清除APC缓存条目?

如何清除APC缓存而不破坏Apache?

这篇关于我们需要在新版本部署应用程序后重新启动apache + APC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆