Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a graceful Apache restart clear APC?

Tags:

php

apache

apc

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).

like image 342
jodonnell Avatar asked May 07 '10 01:05

jodonnell


2 Answers

Both will clear APC cache.

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

like image 153
ZZ Coder Avatar answered Sep 22 '22 13:09

ZZ Coder


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.

like image 42
Matt Avatar answered Sep 22 '22 13:09

Matt