问题描述
当我们部署我们的应用程序,我们简单地创建一个新的文件夹,并指向一个符号链接它,所以阿帕奇总会找到其最新版本的方式。
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应用程序的新版本时,当APC激活一个Apache需要重新启动?还是有更好的方法,例如使用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()
。
请参阅相关的问题:
http://stackoverflow.com/questions/911158/how-to-clear-apc-cache-entries
http://stackoverflow.com/questions/2228213/how-to-clear-apc-cache-without-crashing-apache
这篇关于我们需要的应用程序后,新版本的部署重新启动Apache + APC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!