0a3ecce5a92858690d942952d9621ac3

How to Enable Super Cache WordPress plugin

by Harsh Agrawal on June 24, 2009

in Wordpress

Few days back We talked about WP-Super cache plugin. Wp-Super cache is must have plugin for any wordpress blog on Shared hosting. WP-Super cache plugin is very useful to face the Digg effect.

Digg effect is when any of your blog post hits the Front page of Digg, you will get huge traffic spike. A Normal Shared hosting is not capable of facing such huge traffic, to make them capable of face such situation, you need to install and configure wp”Super cache wordpress plugin. To know more about Digg, you may refer to my previous post on :

Digg : The beginners guide

How to configure Wp “Super cache wordpress plugin?

Just installing and activating Super cache plugin, doesn’t mean that it is enough to take care of huge traffic. When you access super cache under settings you will see something like this >

wp_super_cache

So to enable the Wp “Super cache plugin

You need to add this line to your .htaccess file

# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
AddDefaultCharset UTF-8
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
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 %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
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]
</IfModule>
# END WPSuperCache

You also need to check, /home/origina5/public_html/yourdomain.com/wp-content/cache/.htaccess

has the following entry, if not manually edit it :

# BEGIN supercache
<IfModule mod_mime.c>
  AddEncoding gzip .gz
  AddType text/html .gz
</IfModule>
<IfModule mod_deflate.c>
  SetEnvIfNoCase Request_URI .gz$ no-gzip
</IfModule>
<IfModule mod_headers.c>
  Header set Cache-Control 'max-age=300, must-revalidate'
</IfModule>
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType text/html A300
</IfModule>
# END supercache

Once you have added the entry in your .htaccess file click on update mod_rewrite rules under settings>Wp super cache

update_mode_reqrite_rules

So with two simple steps, you will be making your wordpress blog to face the Digg or stumble effect.

If you have any question, do let me know.

Related posts:

  1. WP super cache : WordPress optimization plugin
  2. WordPress Blank Page Super cache Plugin problem Solved
  3. Subscribe To Comment WordPress plugin : Essential WP Plugin
  4. MaxBlogpress Ping optimizer : WordPress must have plugin
  5. WordPress plugin: How many plugins we should use?
  6. WordPress 2.8.4 Released due to a Serious Security Risk
  7. WpTouch WordPress plugin: iPhone/iPod compatible WordPress blog
  8. Google Buzz With share Count WordPress Plugin

Do you like this story?

Wpfreelancer

{ 8 comments… read them below or add one }

1 George Serradinho June 24, 2009 at 11:34

Hi Harsh,

a very detailed post about the Super Cache plugin. I thought you could of added an image or details of how to check if it is working or not.

To see if it is working using Fx (Firefox), go to your page and then click on ‘View’ and then select ‘Page Source’. Then go to the bottom of the source code and you will see some details like:


If you see this then you know it is working and caching your page.
.-= George Serradinho ´s last blog ..Time Management “ Doing more tasks in less time =-.

Reply

2 George Serradinho June 24, 2009 at 11:37

Hi again,

I added the details, but I see that when I submitted my comment that it had taken it out.

It shows details about the dynamic and cached page.
.-= George Serradinho ´s last blog ..Time Management “ Doing more tasks in less time =-.

Reply

3 Curious Little Person June 24, 2009 at 23:36

Very detailed post Harsh…not sure if i should install this plugin considering the traffic scene :)
.-= Curious Little Person ´s last blog ..Generate Organic Traffic for Profits =-.

Reply

4 Srinivas July 1, 2009 at 16:18

Add where after the existing contents on ht access or before or by replacing them…?
.-= Srinivas ´s last blog ..Make Rapidshare Links On Warez-bb Clickable “ Firefox =-.

Reply

5 Srinivas July 1, 2009 at 16:41

the ans is BEFORE existing descriptions.. update it on your post am gonna write a detailed post on this topic after i am done with setting up my messed up blog…
.-= Srinivas ´s last blog ..Make Rapidshare Links On Warez-bb Clickable “ Firefox =-.

Reply

6 S.Pradeep Kumar September 14, 2009 at 22:37

Dude, is there any way I can check whether I did all these steps correctly ? :D
.-= S.Pradeep Kumar ´s last blog ..Tips To Improve And Increase Your Blog™s Loading Speed =-.

Reply

7 Tony January 31, 2010 at 04:22

Thanks for this article! I forgot to add this to my .htaccess file. SMH

Reply

8 Ajay Jha August 26, 2010 at 12:55

Hi harsh , I am reading your blog regularly, I want to know that which plugin you have used to convert your pages to .html . Please let me know?

Reply

Leave a Comment

Previous post:

Next post:

ShoutMeLoud on Twitter ShoutMeLoud on Facebook ShoutMeLoud RSS Feed