Introduction: WP Super Cache Plugin

For high-traffic websites built with WordPress, we recommend the use of a caching plugin – WP Super Cache.

The plugin helps you optimize your website by reducing both the download time and the consumption of server resources.

What it actually does is that it generates static HTML pages from the dynamic pages on your website.

You can install WP Super Cache from your WordPress dashboard and click Plugins in the WordPress admin panel.

Suggested Settings

If you have a wordpress hosted site, follow the four steps given below to apply the suggested settings.

Step#1. Set General Settings

On “Advanced” tab:

When choosing between “Use mod_rewrite to serve cache files” and “304 Not Modified browser caching”, please keep in mind that you’ll not be able to select 304 Not Modified browser caching as long as you have Use mod_rewrite in use.

Currently, you can’t use both of them at a time because the WP Super Cache Plugin doesn’t allow it.

That’s why you should choose one or the other.

Check box next to “Cache hits to this website…”
Select button next to “Use mod_rewrite to serve cache files”
Check box next to “Compress Pages”
Check box next to “304 Not Modified browser caching”
Check box next to “Don’t cache pages for known users”
“Cache rebuild” & “Extra homepage checks” should already be checked, leave them that way.
Select “Update Status” button.

Step #2. Set Mod_Rewrite Rules
Next, scroll down and select “Update Mod_Rewrite Rules” in the yellow box.

Step#3. Set Garbage Collection
Scroll down to “Expiry Time & Garbage Collection” and enter “3600” in the box and then select “Change Expiration”.

Step #4. Set Rejected User Agents
Make sure that you don’t get rid of the default user agents on the list. Keeping them is a high recommend because it will stop bots from caching content and the pages that visitors don’t usually view.

Take a quick look at what each of the options selected above means so that you’ve more clarity.

Cache hits to this website: It enables caching.

Use mod_rewrite to serve cache files: It’s the quickest caching method, and uses mod_rewrite rules in the .htaccess file.

Compress Pages: It prevents frequent heavy compression so that the use of server resources can be reduced. Requests are, therefore, served quite rapidly.

304 Not Modified browser caching: It informs the client’s browser the difference between modified and unmodified requested files.

Don’t cache pages for known users: It keeps logged-in users from being served with cached pages.

Expiry Time & Garbage Collection: The default setting allows cache files to exist for 1 hour before they’re removed. Depending on the frequency of your site’s content updates, you can adjust the setting by increasing or decreasing it so as to avoid stat/CPU issues.

Rejected User Agents: Don’t remove the default user agents as keeping them on the list restricts spambots from caching the content or the pages that remain hidden from visitors.

We hope you have found this technote useful on WP Super Cache Plugin.

Thanks for reading and leave your questions below to keep the conversation going.

Leave a Reply

Your email address will not be published.