Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

apc vs eaccelerator vs xcache

Im doing research on which one of these to use and I can't really find one that stands out. Eaccelerator is faster than APC, but APC is better maintained. Xcache is faster but the others have easier syntax.

Anyone have recommendations on which to use and why?

like image 245
Galen Avatar asked May 30 '09 23:05

Galen


4 Answers

APC is going to be included in PHP 6, and I'd guess it has been chosen for good reason :)

It's fairly easy to install and certainly speeds things up.

like image 76
David Snabel-Caunt Avatar answered Oct 20 '22 13:10

David Snabel-Caunt


Check out benchmarks and comparisons:

here and here and there

like image 39
Boris Guéry Avatar answered Oct 20 '22 14:10

Boris Guéry


APC definitely. It's written by the PHP guys, so even though it might not share the highest speeds, you can bet on the fact it's the highest quality.

Plus you get some other nifty features I use all the time (http://www.php.net/apc).

like image 13
Evert Avatar answered Oct 20 '22 14:10

Evert


In the end I went with eAccelerator - the speed boost, the smaller memory footprint and the fact that is was very easy to install swayed me. It also has a nice web-based front end to clear the cache and provide some stats.

The fact that its not maintained anymore is not an issue for me - it works, and that's all I care about. In the future, if it breaks PHP6 (or whatever), then I'll re-evaluate my decision and probably go with APC simply because its been adopted by the PHP developers (so should be even easier to install)

like image 11
gbjbaanb Avatar answered Oct 20 '22 14:10

gbjbaanb