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.


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.



  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:


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


  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:

    My Name is, David
    good overall content
    my page:


  9. Niek says:

    I came across. Thank you.

  10. goldenboy says:

    Nice blog btw

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

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

  13. Toni Kim says:

    thanks for the plugin

  14. Bent says:

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

  15. johnkattins says:

    thanks for providing the plugin

  16. tombrackster says:

    thanks for this great plugin

  17. Web Hosting says:

    thanks for this plugin.

  18. oricluber says:


  19. Hi Alex,

    Thank you so much for nice plugin.

  20. GlitterKill says:

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

  21. Cruise says:

    ya.... its good

  22. Derk says:

    ya very good thanx

  23. Karsan Nakliyat says:

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

This site is no longer updated. If you have a need for RHEL/CentOS LAMP Stack updates outside the normal channels, I recommend ART. https://updates.atomicorp.com/channels/