XCache Plugin for WordPress
November 7, 2007 by Jason · 26 Comments
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!
Thanks for the plugin
Thank you for the plugin. Good job!
I'm glad more and more people are sharing their plugins so we can make it easier to work with WP toghether. Thanks a lot!
I have just started using the XCache and it seems to be okay!
Thanks for sharing and makin me think it over.
Hey,
My Name is, David
good overall content
my page:
http://z7sw5hOk.spaces.live.com/
I came across. Thank you.
Hmm. Good post.
Nice blog btw
Is that one is also available for the wordpress 2.7 as well. I use very rare and important plugins. But as you are referring this one, so I would love to see it and try it as well.
I can tell that this is not the first time you write about this topic. Why have you decided to write about it again?
thanks for the plugin
well i was looking for this plugin , so thank you very much
thanks for providing the plugin
thanks for this great plugin
thanks for this plugin.
oriclub
Hi Alex,
Thank you so much for nice plugin.
Thanks for the heads-up! I am always looking for ways to optimize the scripts as well as the server itself. 🙂
Do you want know your see request variables - for free?
Cool servise - Free Network tools
ya.... its good
ya very good thanx
cool .. Thanks for both the blog posts and the repository - both of which are fantastically useful!