There are various problems when using php_apc with symfony,
If the boost is not so significant,I'm going to replace apc with memcached.
There are various problems when using php_apc with symfony,
If the boost is not so significant,I'm going to replace apc with memcached.
Memcached is a distributed caching system, whereas APC is non-distributed - and mainly an opcode cache.
If (and only if) you have a web application which has to live on different webservers (loadbalancing), you have to use memcache for distributed caching. If not, just stick to APC and its cache.
You should always use an opcode cache, which APC is (also APC will get integrated into php6 iirc, so why not start using it now).
You can/should use both for different purposes.
APC and memcached are not the same things :
Fisrt of all, APC has two roles :
And for memcached :
You can use either APC or memcached, or both, as a data-cache (that's what we are doing on the project I'm currently working on : some data are cached in APC, and some others using memcached).
But, if you want some opcode cache, you'll have to go with APC (or eAccelerator ; but not sure it's well maintained).