WP Super Cache – The Ultimate WordPress Caching Plugin

I’ve upgraded my old WP-Cache plugin to this one that I found on Digg.com today.

From the Digg.com Post:

Tired of clicking a link off the Digg front page only to find a crashed or mortally lagged site on the other side? Finally, Donncha (one of the main WordPress developers) has solved the problem once and for all with a plugin that blows WP-Cache away.

I had a minor issue but was able to find the answer on the WordPress plugins wp-super-cache faq page. If you are upgrading from the old plugin, you need to correctly set up you cache files in the wp-content directory. I had old files based on the original WP-Cache and needed to remove those and add the new ones.

# from within the wp-content directory
>rm wp-cache-config.php
>cp plugins/wp-super-cache/wp-cache-config-sample.php wp-cache-config.php
>ln -s plugins/wp-super-cache/wp-cache-phase1.php advanced-cache.php

After that, I was able to enable and use the plugin successfully.

In addition to enabling the plugin, I thought I’d try out the super cache functionality. To do this, you have to add a few more rewrite rules to your .htaccess file. I didn’t notice this in the documentation, but you have to add these before your other rewrite rules.

# new .htaccess file after enabling super cache
RewriteEngine On
# if these rules come after, you'll not get the super cache functionality
RewriteCond %{HTTP_COOKIE} !^.*comment_author_.*$
RewriteCond %{HTTP_COOKIE} !^.*wordpressuser.*$
RewriteCond %{HTTP_COOKIE} !^.*wp-postpass_.*$
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1index.html.gz -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1index.html.gz [L]

# my original rules
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Edit: I posted an update that deals with getting the super cache compression to work.

read more | digg story

This entry was posted in Web and tagged , , , , , , , . Bookmark the permalink.

3 Responses to WP Super Cache – The Ultimate WordPress Caching Plugin

  1. Andrew says:

    Hi Dennis,

    I just write a new plugin WP Widget Cache, which can cache the output of your blog widgets. It will significantly reduce the server usage especially when Google is crawling your site. So you can treat it as a plus to WP Super Cache.

    Will you please have a try. Thanks very much.

    Here is the plugin url:
    http://wordpress.org/extend/plugins/wp-widget-cache/

  2. Dennis says:

    It seems like widget caching would be fine in a circumstance where the super-cache wouldn’t work, but super cache works equally as well with googlebot as with normal users. I’m not sure the benefit of widget caching when super cache is enabled.

  3. sohbet says:

    first I congratulate for your site, I have enjoyed your site in a general look. I wish for continuance of your success

Comments are closed.