WordPress HowTo

How-to guide for WordPress

  • Home
  • Plugins
  • Themes
  • Contact
    • Privacy Policy
  • About

How to Use WP Super Cache Plugin

WP Super Cache is a caching plugin for WordPress. It produces static HTML files for your web pages so your web server can serve them to users instead of processing heavy PHP scripts every time a page is rendered.

There are a lot of caching plugins out there. I prefer WP Super Cache because it’s lightweight, follows the best coding practice and most importantly developed by automattic (The company that owns WordPress). It gives me the confidence that this plugin won’t just disappear tomorrow.

Caching makes your website load faster and reduces the bandwidth usage of your server. However, it also involves some additional tweaking in the plugin settings to make sure that your users get the best experience while browsing your site. It may not be easy for most WordPress users as they are not familiar with these caching terms. In this article I want to explain some of these caching terms to help you get started with WP Super Cache plugin.

WP Super Cache Configuration

After you have installed the plugin the first thing you need to do is enable caching in the settings (Settings->WP Super Cache). By default this option is disabled by Super Cache when you activate it.

screenshot showing how to enable caching in the wp super cache plugin

Now switch to the Advanced tab.

screenshot showing the advanced tab of wp super cache plugin

Enable “Cache hits to this website for quick access”. There are three ways super cache can serve cached files.

Mod_Rewrite: This method is done by the Apache mod_rewrite module and is the fastest way to serve cached files. The reason why this is so quick is because it completely bypasses PHP by modifying your .htaccess file. It also works well with a large amount of traffic as it doesn’t rely on PHP.

PHP: This method allows PHP to serve cached file, which is why no modification is made to the .htaccess file. If your website gets a large amount of traffic, this method may not work as well as “Mod_Rewrite”.

Legacy caching: This method is used mainly to cache pages for known users (users who are logged in or left comments). That means the content of the each page might be different to different users. Legacy caching is flexible but the slowest. It’s better to avoid this option as it doesn’t serve a big purpose.

You can choose between Mod_Rewrite and PHP (I prefer Mod_Rewrite).

screenshot showing the miscellaneous section of super cache plugin

In the Miscellaneous section select these options,

  1. Compress pages so they’re served more quickly to visitors
  2. 304 Not modified browser caching (if you haven’t selected Mod_Rewrite). This indicates when a page has not been modified since it was last requested. This feature may not work well on some web hosts. In that case feel free to disable it.
  3. Don’t cache pages for known users (very useful when you are logged in as an admin and making changes to your site).
  4. Cache rebuild. Serve a supercache file to anonymous users while a new file is being generated.

In the Advanced section enable “Extra homepage checks”. This is to make sure your homepage is always cached (very occasionally it may not get cached).

screenshot showing the advanced section of super cache plugin

Click the “Update Status” button.

If you select the “Mod_Rewrite” method, Super Cache plugin will generate the necessary Mod_Rewrite rules for you. Click “Update Mod_Rewrite Rules”.

screenshot showing the update mod_rewrite button in the super cache plugin

In the “Expiry Time & Garbage Collection” section make sure to set a cache timeout in seconds. By default it should be set to 3600. This tells the plugin how long it should keep those cached pages before they are regenerated.

The rest can stay as is. Your site should now be ready to use super cache caching. If you have any questions feel free to share it in the comments.

Related

Written by Noor Alam · Categorized: wordpress

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search WP HowTo

Recent Posts

  • How to Add a Reply-To Address in the Gmail SMTP WordPress Plugin
  • What Does a Security Challenge Mean on PayPal?
  • WP PayPal Button Integration with Contact Form 7
  • Can People See Your Address on PayPal?
  • Mailchimp Integration for WP PayPal Plugin
  • How to Show a Text Box at WP PayPal Checkout to Collect Custom Data from Buyers
  • How to Add a Recurring Price Field to a PayPal Subscription Button
  • How to Add a Quantity Field to a PayPal Button
  • How to Configure Product Variations in WP PayPal
  • How to Make Your WooCommerce Add to Cart Buttons Bigger

Featured Add-ons

Buy Now Custom Amount for PayPal

Buy Now Discount for PayPal

Contact Form 7 Integration for PayPal

Custom Input for PayPal

Mailchimp Integration for PayPal

Product Variations for PayPal

Variable Quantity for PayPal

Variable Subscription for PayPal

Copyright © 2023 · WordPress HowTo

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAcceptRead More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT