I need a opcode-cache in my project. Also i will use for the datastore (mysql returned row) cache ? Which is the best for you and WHY ?
Asked
Active
Viewed 4,772 times
4
-
See this:- http://stackoverflow.com/questions/930877/apc-vs-eaccelerator-vs-xcache – Mukesh Chapagain Jul 14 '11 at 11:53
3 Answers
10
I'd choose APC, but only because it's being adopted as part of PHP 6.
There are also some good opinions offered on this question.

Community
- 1
- 1

Ian Gregory
- 5,770
- 1
- 29
- 42
-
Indeed, and I still recommend APC. Memcache has some interesting features - distributed caching but no opcode cache. – David Snabel-Caunt Oct 23 '09 at 15:58
-
Facebook uses APC very heavily -- so suffice it to say, it's pretty soundly proven in production environments. – Frank Farmer Oct 23 '09 at 19:01
-
1Since this comment, APC has been dropped off PHP, in favor of OPcache, in PHP 5.6. – Yvan Nov 17 '14 at 08:40
3
I use XCache because it was written by the same person who wrote lighttpd, which was written for SPEED. Works on apache, also.

David Barnes
- 2,138
- 5
- 19
- 25
1
FWIW I've had great success (reliability-wise and performance-wise) using XCache. I also use it in conjunction with memcache to speed up session operations and cut down on hits to MySQL.

matt
- 846
- 2
- 10
- 13