About
Kooty's TechnoBabble is a blog by Brennan Kootnekoff, and is about the interesting day-to-day life of a multi-platform systems engineer/administrator. From time to time, he will post useful tidbits of information here that may save hours of time, and prevent premature gray hairs and aging.
Search
Categories
Other
FortiScan Certified
April 3rd, 2008. comments are open 0 commentsWP-Super-Cache for WordPress 2.5

I’ve recently upgraded to WordPress 2.5 and realized that WP-Cache has stopped working. I decided to search for alternative solutions for WordPress caching, and on a comment for WP-Cache, I discovered WP-Super-Cache. It seems a lot better than WP-Cache from my preliminary analysis. Wp-Super-Cache can handle nearly 2500 requests per second (as opposed to 4 without any caching). I do notice a faster load speed even by using my browser (I have 5 static IPs, and since my switch isn’t working correctly, all my network traffic is getting routed to my ISP and back).

Apache Benchmark Results

To install the plugin, just download it from here,install it as usual by putting into your wp-content/plugins folder, activate it using the Plugins menu. Now, before configuring the plugin, you must put the following code in your .htaccess in the ROOT of your web server:

—————–.htaccess—————–
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} !.*s=.*
RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
RewriteCond %{QUERY_STRING} !.*s=.*
RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
# BEGIN WordPress
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
—————–.htaccess—————–

After you have done that, you should be able to configure all the features in WP-Super-Cache.
By the way, if anyone is wondering, and/or anybody wants a GREAT PuTTY mod to use, use PiETTY. I have been using this client for over a year now. It has full UTF-8 Asian language support, and alphablend transparency. It looks sweet when used together with Vista’s Aero.
Brennan

Leave a Comment

Trackback this post  |  Subscribe to the comments via RSS Feed