The Performance Symfony book mentions the need to flush the APC cache when some classes have moved and this is indeed needed.
However, I don't find how to clear the APC cache for autoloaders. I tried with the PHP apc_clear_cache()
function, but it didn't help.
How to clear this APC cache?
As mentioned by Mauro apc_clear_cache can also take an argument to clear different types of apc caches:
apc_clear_cache();
apc_clear_cache('user');
apc_clear_cache('opcode');
Please also see this related post on SO.
And there is also ApcBundle which adds a Symfony apc:clear command.