May
11
14

WP Cache

Asides

I’ve linked it before, and it’s worth doing again: WP Cache makes WordPress perform as well as a completely static-file site, able to handle hundreds of requests per second without breaking a sweat. It also maintains with the conventions that were introduced in Staticize for making selective portions of a page completely dynamic, regardless of caching. Think how much performance would scream if combined with something like lighttpd. We’re going to be looking at rolling in this advanced caching into the core in the future.


14 Comments

  • Oliver May 11, 2005 @ 6:41 pm

    Hey that’s great!

  • Ozh May 11, 2005 @ 10:42 pm

    Funnily enough, WP Cache’s site is not available at the moment. Photomatted ? :)
    Anyway, what should be used ? Staticized ? WP Cache ? Anything important that differs between the two ?

  • TedFox May 11, 2005 @ 10:43 pm

    Cache requires modules that my webhost does not have. :(

  • Matt May 11, 2005 @ 10:47 pm

    Maybe it was Photomatted ;) , it’s in the plugin repository anyway so you can grab it there.

  • Luc May 12, 2005 @ 5:58 am

    I’m a very happy WP-cache user and it would be great if this little gem was added to the core !!!

  • Andy Skelton May 12, 2005 @ 8:23 am

    What a timely post… I’m just starting to consider bringing my community site into beta and when I do, I’ll have to start caching the pages with the complex queries. Did I mention that it will run WordPress?

  • Mathias Bynens May 12, 2005 @ 11:36 am

    Here’s a link to it in the repository, for those who like to view source code online (like me!).

    So, is WP-Cache better than Staticize?

    I’d love to see this sorta thang rolled into the core, as you said.

  • Max Thrane May 13, 2005 @ 4:44 pm

    I doubt any personal blog gets *that* much traffic that it needs WP Cache. AFAIK default installation of WP 1.5 does 18 queries on the main page. On the other side, sites like Matts or Alex’ could benefit from that feature for sure.

  • Mathias Bynens May 13, 2005 @ 11:39 pm

    Well, it might not need WP Cache, but still it’s better to cache than not to. A little staticity won’t hurt.

  • Dave Seah June 30, 2005 @ 11:09 pm

    I don’t get a lot of traffic, but the server I’m on is loaded enough that the wp-cache helps keeps the spikes to a minimum. The spiking is due, I think, to PHP-Markdown parsing the text.

  • Nick Luckett July 5, 2005 @ 10:10 am

    Thankfully Wp Cache saved my site a few months ago, great plugin. Basically I was getting too many calls to the database an hour and my server kept shutting me down.

    I do have one question though…how do you make things stay dynamic? There is a small section in the readme that explains it, but I havent been able to get something like my search function working again.

    This is my previous search function code, but I cant seem to figure out how to run it now:

    <form style="padding: 0px; margin-top: 0px; margin-bottom: 0px;"
    id="searchform" method="get" action="<?php bloginfo(‘url’);
    ?>">
    <input type="text" name="s" id="s" size="20"
    onfocus="this.value=”" value="<?php if (!$s) { $s = "
    -Search 4cr-"; } echo $s; ?>" />
    </form>

  • Elliott Back April 21, 2006 @ 8:09 pm

    I’ve just written a drop-in enhancer for WP-Cache called Digg Defender. It works with or without WP-Cache by redirecting requests from Digg/Slashdot/Etc to a Coral Cache server. No more server meltdown.

  • Nick Georgakis October 25, 2006 @ 8:03 pm

    Hello Matt,
    I have added enhanced gzip support to wp-cache 2.0 module , enabling the storage of already gzipped pages on the cache and avoiding the need for constant compressions when serving cached pages.
    It can help a blog to respond better in a high demand situations, decreasing both server CPU load and required bandwidth to minimum.
    The required modifications are described at my blog page – Modifying WP-Cache 2.0 to generate and cache gzipped output once and serve it multiple times
    It is my first contribution to the WordPress community and I am welcoming any feedback!

  • David Bradley May 23, 2007 @ 12:11 pm

    the wp cache script saved Sciencetext from a major drubbing this week. For some reason a fairly obvious post about how to use your GMail account as a virtual hard drive got Stumbled. Amazing how many people hit the site all at once…it would have pushed us over our CPU allowance very quickly indeed without wp-cache

    db

Share Your Thoughts