Setup WordPress with WP Super Cache
Important noteThis tutorial assumes you have already created a pull zone.
Installing WP Super Cache
- Login to your WordPress Admin Panel
- Hover your mouse over “Plugins” and click “Add new”
- In the “Search” box, type “WP Super Cache” and hit “Search Plugins”
- The first option will be “WP Super Cache” and in the “Description” box, it will show that the plugin is created by “Donncha O Caoimh”. This is the plugin you need to install.
- Click “Install Now”. A Prompt Dialog will open asking if you are sure you want to install the plugin, click “OK”. After the plugin is installed, click “Activate Plugin”.
- You should see a yellow box advising that WP Super Cache is disabled. Please go to the plugin admin page to enable caching.” Click on the “plugin admin page” to go to the settings page.
- The settings for “WP Super Cache” can be found under the “Settings” menu in the WordPress Admin Dashboard
There! Now you are ready to configure the plugin’s options.
Configuring WP Super Cache
- Login to your WordPress Admin panel, and scroll down to the “Settings” link on the left panel, then click on “WP Super Cache”
- The first tab is called “Easy”. Ticking the “Caching On” option and then clicking “Update Status” is all that needs to be done on that page.
- Next step is to click on “Advanced”, and start setting the options that best fit your blog. However, below are the recommended settings. Of course settings may very from one blog to another.
- Tick the “Cache hits to this website for quick access. (Recommended)” Check box next to “Caching”
- Tick the “Use mod_rewrite to serve cache files. (Recommended)” Radio box.
- Under “Miscellaneous“, make sure to tick the check boxes next to the following options:
- Compress pages so they’re served more quickly to visitors. (Recommended)
- 304 Not Modified browser caching. Indicate when a page has not been modified since last requested. (Recommended)
- Don’t cache pages for known users. (Recommended)
- Cache rebuild. Serve a supercache file to anonymous users while a new file is being generated. (Recommended)
- You can leave the rest of the option as they are, no changes.
- Click “Updates Status”
- After that, you may get a message asking you to “Update Mod_Rewrite Rules” scroll down until you find that option then click the button
- Now.. Click the “CDN” tab.
- Tick the “Enable CDN Support” check box.
- In the box next to “Off-site url” box, enter your CDN url prefixed with http://. You can use the Temporary CDN URL which you have been given after you have created your Pull Zone. If you are using a Custom Domain, such as cdn.mysite.com, you can input that in the text box.
- Insert the same URL in the box next to “Additional CNAMES”
- Tick the check box called “Skip https URLs to avoid “mixed content” errors” — this will prevent any SSL Errors should you have some parts of your website under SSL. Enable this option only if you do not have a Custom or Shared SSL CDN URL.
- All done. Click “Save Changes”.
- Not always necessary, but you can click on “Contents” and “Delete Cache” to make sure the version of WP Super Cache-Cached contents is fresh.
Important notesWordPress users, some themes/plugins/options are known to break the CDN Functionality.
Please make sure you do not have any plugins that perform any of the following functions
- GZip compression
- CSS and/or JS and/or HTML minifcation
- CSS and/or JS combination