I was sitting here the other day saying to myself, you know, wouldn't it be nice if I could use the Var cache in XCache to eliminate some of the (far too numerous) queries used by Wordpress? Well, I set myself on building a plugin to do just that, but it turns out that someone else actually already did it!
Now, before I go any further I should mention that this isn't actually a plugin, it's more of an extension of existing functionality. It doesn't go in your 'wp-content/plugins' folder (that was the first mistake I made, I never read the directions), it doesn't show up in your plugins list (making you check manually for updates, even under WordPress 2.3), and it doesn't have a pretty GUI in 'wp-admin'.
What it does do is eliminate a number of common queries that get run over and over for every single page view. On this site it eliminated a total of 8 queries per page load. While that only dropped the page generation time by about 0.1 seconds, every little bit counts.
Oh, and if you're one of those people that still doesn't use XCache (why aren't you, by the way?), the author created a version for eAccelerator as well (and links are provided on those pages to the original work for APC and memcache).
eAccelerator Plugin for Wordpress
These two were just recently updated so make sure you give them a try.
>> Oh, and if you're one of those people that still doesn't use XCache (why aren't you, by the way?)
So, as someone that currently doesn't run ANY bytecache but has been looking in to doing so, am I correct in assuming you would recommended xcache over APC or anything else? If so, why do you prefer xcache?
I read somewhere that APC was the defacto standard to the extent that it was actually being rolled in to the PHP6 code base.
Thanks,
Alex.
Please ignore the above. Prior to posting I did perform a search on your blog for the keyword "xcache" but I completely missed that there was a second page of results. Only subsequently did I find this:
http://www.jasonlitka.com/2006/12/20/php-caching-and-acceleration-with-xcache/
Thanks for both the blog posts and the repository - both of which are fantastically useful!
Alex.
Your post makes one think! Great article. Thanks for allowing me to comment!