Hey DavidR,
I have a VPS with a fairly active WP site. I'm going to install Eaccelerator via Easyapache. My question is, should I have these other options enabled as well (filecache, memcache & diskcache)? I've found a few posts that come close to an answer but nothing really that helps me understand which to use and why.
Thanks.
The daemon memcache is actually more memory intensive.
Secondly Memcache/MemcacheD, filecache, diskcache is not an Opcode Cacher.
It is a distributed memory caching system.
It does not improve the performance of your PHP code.
It can be used to store data temporarily only.
This is how it works:
HTTP request -> Apache -> PHP -> Memcache -> Memcached
So the PHP data is stored in the memory as memcached daemon.
You can learn more about Apache caching modules here -
Caching Guide - Apache HTTP Server
For OPcode cachers such as Eaccelerator, APC, xCache:
Eaccelerator:
- Now coded and supported by community. (Used to be coded by one man but he left the project for several years)
- Only works on mod_dso (Not secured if your VPS is also being used by other strangers)
- Easy compilation via EasyApache
- Performance wise, its not really the best.
APC:
- Coded and supported by PHP developers. (The people developing for PHP)
- Works on mod_dso, mod_fcgi and mod_cgi
- Manually installation using yum
- Performance wise, its the 2nd best but it is supported by PHP developers. (This project will not die unless the PHP developers give up on it)
xCache:
- Coded and supported by a few people from the Lighttpd community and developer team.
- Works on mod_dso, mod_fcgi and mod_cgi
- Easy compilation via EasyApache
- Performance wise, its the best.
I would actually recommend you to install xCache.
After installing xCache, open up the php.ini via SSH terminal and then edit it.
You can look at the configuration provided here -
XcacheIni – XCache
Please let me know if I've answer your question :P