PHP fastCGI and APC

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fatfish
Forum Newbie
Posts: 1
Joined: Tue Nov 09, 2010 1:54 am

PHP fastCGI and APC

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: PHP fastCGI and APC

Post 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.
Post Reply