WP Super Cache best settings to optimize your blog

Written by Tushar. Posted in Blogging

For wordpress blog users there are many caching plugins like WP Super Cache, W3 Total Cache, Hyper Cache etc. This tutorial will provide WP Super Cache best settings for optimizing your wordpress blog.

The importance of caching in blog optimization has been discussed in earlier articles.

WP Super Cache best settings

Installation

  1. Goto Plugins page and install WP Super Cache
  2. Activate the plugin.
  3. After activation you will receive message displaying “WP Super Cache is disabled. Please go to the plugin admin page to enable caching.”
  4. Click on the link displayed in red color.

wp super cache best settings

After moving to admin page you will see tab-wise settings. Here WP Super Cache best settings actually starts. First goto to “Easy tab”

Easy

  • Check the “Caching On” option
  • Click update Status button.

wp super cache best settings

Advanced

In this Tab check the following options.

Caching Settings

  • Cache hits to this website for quick access.
  • Use mod_rewrite to serve cache files.

Miscellaneous Settings

  • Compress pages so that they are served more quickly to users.
  • Don’t cache pages for known users.
  • Cache rebuild. Serve a supercache file to anonymous users while a new file is being generated.

Advanced Settings

  • Mobile device Support
  • Extra Homepage checks

Now click the “Update Status” button, you will receive a message saying.

Rewrite rules must be updated
The rewrite rules required by this plugin have changed or are missing.”

Now you need to click the “Update Mod_rewrite rules” button. Now your first level of WP Super Cache best settings is over. Scroll down for more advanced settings.

Expiry Time & Garbage Collection

  • Set Cache Timeout to “3600 seconds.”
  • Set Scheduler to “Timer” and “3600 seconds.”

This is all for advanced part of settings and leave the rest as it is.

Contents

  • Click “Delete Expired” button
  • Click “Delete Cache” button

Preload

This is a very important settings as through this, whenever a user visits your blog, he/she would be served with cached pages providing faster response to user.

  • Set “Refresh preloaded cache files every” to 10080 minutes.
  • Select “all” in “Preload…. posts”
  • Check “Preload Mode”
  • Don’t check “Preload tags, categories and other taxonomies” and leave as it is.
  • Don’t check “Send me status emails when files are refreshed” and leave as it is.
  • Click the “Update Settings” button
  • Now Click the “Preload Cache Now” button.

Plugins

This part of settings is for setting up the WP Super Cache plugin to support other regular plugins that enable mobile support for your blog using “WPTouch” plugin. If you use any of the plugin listed in this section set the option to “Enabled”.

Test your Configuration

  • For this move to “Easy” tab and then click the “Test Cache” button. Now if you received message “The timestamps on both pages match!,” it means that your caching is working properly.

wp super cache best settings

  • Further open your blog on some browser and then right click your mouse button and “View page source.” scroll down to the bottom of page source and check if you are getting text comment like the following screenshot.

wp super cache best settings

If the “test your configuration” part discussed above goes wrong in your case then you can test with other settings.

  • In the “Advanced” tab check “Use PHP to serve cache files” or “Legacy page caching”
  • Next you can uncheck the option “Compress pages so they’re served more quickly to visitors.”

I hope after doing all these you will get a smoothly and fast loading wordpress blog. You can check your “Page Score” at Google PageSpeed Insights.

For information regarding Page Score, do read the following.

Tags: ,

Tushar

If you like this post then follow on Twitter and Facebook. If you have any query then contact the author.

Comments (11)

  • Noelle Mena

    |

    Thanks for this Tushar, the settings worked perfect. 95 out of 100 with Pingdom. I’m keeping your guide!

    Reply

    • Tushar

      |

      95 is a very good score. I am happy that my article helped you to achieve this much score.

      Reply

  • Kenya Shah

    |

    Hallo Tushar, why you would say ” Don’t check “Preload tags, categories and other taxonomies” and leave as it is ” Why do you think they do not need to be preloaded? In your best settings is also missing a major part of the setting. You are not mentioning settings for Accepted Filenames & Rejected URIs or Rejected User Agents. can you also advice on those?

    Reply

    • Tushar

      |

      I wrote it don’t check because they act as optional features and when we are on shared hosting, we try to minimize the load. You can tryout checking “Preload tags, categories and other taxonomies” if you are not on shared server hosting.
      For the accepted filenames & rejected URI’s settings I will discuss in a post which will be advanced part containing everything.
      As of now this is best setting for the plugin to get some good page Score Google PageSpeed Insights.

      Reply

  • Kingsley

    |

    Great Toturial my scores are still low, but am trying

    Reply

    • Tushar

      |

      What’s your current score ? Share with us may be we can help you better.

      Reply

  • selahattin

    |

    Hi,
    Thanks for your good tutorial.
    I installed wp super cache, but I am not sure it works properly. Because;
    1. I see that “Cached page generated by WP-Super-Cache” at bottom of view-source.
    2. At FTP, I also see related cached pages.
    3. when testing, timestamps are ok.

    But, I test the site by pagespeed sites with plugin and without plugin, I can’t find any difference at page load figures. Page-size and number of requests are the same, loading time is also nearly the same. ( page-size:2.2MB, Requests:160, loading time: 4s)
    When I look at timeline, I see that all original site files are loaded.
    Plugins settings are true because I got them from my hosting company, hostgator.
    what is wrong?
    Could you advise me, please?
    Best regards

    Reply

    • Tushar

      |

      There seems nothing wrong as timestamp are ok and for the site tests without plugin you need to follow the tutorial http://www.technoxpad.com/w3-total-cache-removal-tutorial/
      While you test in plugin being disabled, doesn’t disables it fully because the caching rule sets still exists in .htaccess file. So my suggestion is test it after fully removing it. Hope so this will work for you.

      Reply

  • Jorge

    |

    Hi. Congratulations for all this notes and thanks for them, very useful. I want to ask you what will happen in a wordpress site if in the WP SUPER CACHE plugin I set the Cache Timeout to 10 seconds and not to the recomended 3600.
    thanks

    Reply

    • Tushar

      |

      Thanks for ur comments Jorge.
      Cache timeout is set as when the cache should be deleted. Now if your blog is updated more frequently in a day and you do update your posts frequently in a day then set that cache timeout to minimum. Recommended is 3600 which comes to be 1 hour that works best.
      Also, if you are on shared hosting, remember your resources are limited. Setting low timeout like 10 seconds will mean you are keeping the processor busy for updating cache for after every 10 seconds. Keeping processor too much busy will mean misuse of resources on shared hosting, which can lead to penal action by the hosting company.
      Although if you are on dedicated server then you may set the timeout less than 3600 seconds.

      Reply

Leave a comment