• X

    How to Enable Super Cache WordPress plugin

    By in WordPress

    Bluehost hosting

    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 thumb How to Enable Super Cache Wordpress plugin

    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 thumb How to Enable Super Cache Wordpress plugin

    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.

    Subscribe to Download WordPress Guide Worth $99

    Discover more awesome articles

    Article by

    Harsh has written 1124 articles.

    If you like This post, you can follow ShoutMeLoud on Twitter. Subscribe to Blogging tips via RSS or EMAIL to receive instant updates.

    { 4 comments… read them below or add one }

    George Serradinho

    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.

    Reply

    George Serradinho

    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.

    Reply

    Tony

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

    Reply

    Ajay Jha

    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:

    `