XCache Plugin for WordPress

November 7, 2007 by · 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).

XCache Plugin for WordPress

eAccelerator Plugin for WordPress

These two were just recently updated so make sure you give them a try.

Comments

26 Responses to “XCache Plugin for WordPress”
  1. Alex says:

    >> 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.

  2. Alex says:

    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.

  3. StumbleUpon says:

    Your post makes one think! Great article. Thanks for allowing me to comment!

  4. Anastasia says:

    Thanks for the plugin

  5. SouthMedia says:

    Thank you for the plugin. Good job!

  6. Art-Light says:

    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!

  7. Odessa-man says:

    I have just started using the XCache and it seems to be okay!
    Thanks for sharing and makin me think it over.

  8. neraInatipt says:

    Hey,
    My Name is, David
    good overall content
    my page:

    http://z7sw5hOk.spaces.live.com/

  9. Niek says:

    I came across. Thank you.

  10. Kansas says:

    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.

  11. Heartburn Home Remedy says:

    I can tell that this is not the first time you write about this topic. Why have you decided to write about it again?

  12. Toni Kim says:

    thanks for the plugin

  13. Bent says:

    well i was looking for this plugin , so thank you very much

  14. johnkattins says:

    thanks for providing the plugin

  15. tombrackster says:

    thanks for this great plugin

  16. Web Hosting says:

    thanks for this plugin.

  17. Hi Alex,

    Thank you so much for nice plugin.

  18. GlitterKill says:

    Thanks for the heads-up! I am always looking for ways to optimize the scripts as well as the server itself. :)

  19. Cruise says:

    ya.... its good

  20. Derk says:

    ya very good thanx

  21. Karsan Nakliyat says:

    cool .. Thanks for both the blog posts and the repository - both of which are fantastically useful!

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

 

Note: This post is over 5 years old. You may want to check later in this blog to see if there is new information relevant to your comment.

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. Use of a non-personal web site or blog in the "Web Site" field and/or leaving a comment that is off-topic or inappropriate may result in the comment being edited or removed at the discretion of the site owner.