Does a graceful Apache restart clear APC?
Asked Answered
C

3

13

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

Cartwright answered 7/5, 2010 at 1:1 Comment(0)
K
18

Both will clear APC cache.

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

Kwiatkowski answered 7/5, 2010 at 1:31 Comment(2)
Does the apc cache also clear the opcode cache, or just the user cache?Impassible
What about an httpd reload ?Bradleigh
I
6

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.

Insinuating answered 24/2, 2012 at 18:0 Comment(0)
P
4

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

Plurality answered 7/5, 2010 at 16:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.