Does a graceful Apache restart clear APC?

混江龙づ霸主 提交于 2019-11-30 02:05:06

问题


Will calling

$ httpd graceful

clear out the APC cache, or do I have to do a full-blown

$ httpd restart

to do it? (Keeping in mind that I know there are better ways to do it, like calling apc_clear_cache() programmatically).


回答1:


Both will clear APC cache.

You can also clear cache using the APC.php script.




回答2:


Graceful does not wait for active connections to die before doing a "full restart". It is the same as doing a HUP against the master process. Apache keeps children (processes) with active connections alive, whilst bringing up new children with new configuration (or nicely cleared caches) for each new connection. As the old connections die off, those child processes are killed as well to make way for the new ones.




回答3:


httpd graceful does a full restart, it simply waits until there are no active connections before doing so



来源:https://stackoverflow.com/questions/2785533/does-a-graceful-apache-restart-clear-apc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!