Portal Home > Knowledgebase > Articles Database > what is APC /eaccelerator
what is APC /eaccelerator
Posted by electronics2011, 11-29-2011, 08:51 PM |
can nyone walk me through what is APC /eaccelerator
|
Posted by Kairus, 11-29-2011, 09:10 PM |
They're PHP opcode cachers. Without one, each time a php script is accessed, it has to be parsed and compiled into opcodes which are then executed, it's a pretty slow/CPU intensive process, APC/eAccelerator/xCache will stop this process from being done every page load.
|
Posted by cutabovehost, 12-05-2011, 10:39 PM |
Is EAccelerator good?
|
Posted by ArturasLIX, 12-06-2011, 03:28 AM |
It is difficult to say which one is better eAccelerator, xCache or APC. We are using eAccelerator, because it is compatible with ZendOptimizer. Other ones as I know, don't.
Also there is few websites that will not work as expected with eAcceletaror, but you can always disable it on per website basis with .htaccess directive.
If you are not using Zend you can try others, perhaps they are even faster.
|
Posted by Kairus, 12-06-2011, 03:37 AM |
eAccelerator used to be the fastest, but the project is pretty much dead (or in maintenance mode) now. APC will be included in PHP 5.4, and was developed by an original PHP developer. xCache in my own testing is a bit slower than APC, but the 2.0 beta is a bit faster, but most likely not production ready.
tl;dr APC = the best right now.
|
Posted by NameSniper, 12-06-2011, 06:19 PM |
We have been using xCache for years now and its compatible with Zend Optimizer.
|
Posted by OSPDX, 12-06-2011, 10:39 PM |
In my experience, when you're hosting many concurrent users(like this forum or larger, for example - something that keeps many php workers running simultaneously on systems with many cores) having one cache per core(including HT) via xCache will give you much better results than APC or eAccelerator. I have used xCache on a wide variety of php applications and never had any issues related to compatibility.
|
Add to Favourites Print this Article
Also Read