Page 1 of 1

PHP fastCGI and APC

Posted: Tue Nov 09, 2010 2:00 am
by fatfish
Hi all,
I'm running PHP 5.3 as fastCGI (using php-fpm) and APC.
I understand that in fastCGI mode, there are several php processes (managed by the fpm) and for each one of them, APC hold a separate cache in memory (per process).
If my assumptions are true, is there any way to clear the cache of all processes at once?

Thanks,
fatfish

Re: PHP fastCGI and APC

Posted: Tue Nov 09, 2010 2:24 am
by Weirdan
APC uses shared memory, so it could be that it shares its cache across all processes in a pool. Can't say for sure though. If it's so, any script executing apc_clear_cache() in the pool would empty cache for all processes.