[wp-hackers] XCache Variable Storage vs. WP Object Cache
Mark Jaquith
mark.wordpress at txfx.net
Sat Sep 15 20:48:56 GMT 2007
On Sep 15, 2007, at 2:31 PM, Computer Guru wrote:
> Would there be any benefit in using
> XCache's variable cache instead of the inbuilt WP object cache?
The build-in WP object cache (which you enable by define
('ENABLE_CACHE', true); in wp-config.php) uses the filesystem to
store the data. Sometimes you get a speed benefit as compared to
having to do the SQL queries on every load, but sometimes you don't
(which is one of many reasons why it isn't enabled by default).
But it is almost always going to be faster to use a memory-based
object storage engine than the built-in file-based method, as
retrieving data from memory is orders of magnitude faster than
retrieving data from a hard disk.
You can probably build an XCache object cache in an afternoon, so
it's worth a shot. Make sure you measure before/after speeds to see
what kind of difference it makes!
--
Mark Jaquith
http://markjaquith.com/
Covered Web Services
http://coveredwebservices.com/
WordPress Ninja @ b5media Inc
http://b5media.com/
More information about the wp-hackers
mailing list