November 12, 2015
This tutorial assumes you have already created a Pull Zone.
Installing WP Super Cache
- Log into your WordPress admin panel
- Hover your mouse over “Plugins” and click “Add New”
- In the “Search” box, type “WP Super Cache” and click “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 and ask 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, “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
- Log into your WordPress admin panel, scroll down to the “Settings” link on the left panel, and 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. We have listed the recommended settings below, but of course the best settings for your blog may be different.
- Tick the “Cache hits to this website for quick access.” check box next to “Caching.” (Recommended)
- Tick the “Use mod_rewrite to serve cache files.” radio box. (Recommended)
- 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)
- 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 “Update Status”
- After that, you may get a message asking you to “Update Mod_Rewrite Rules,” so scroll down the page until you find that option, and then click the button
If you should need “304 caching,” make sure to use the php caching method as it can’t work side by side with mod_rewrite. Also, the php method has a performance advantage compared to legacy mode.
- 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 if 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 cached contents of WP Super Cache contents is fresh.
To ensure you implemented MaxCDN correctly, you can view the source code of any page to confirm that the CDN domain is being used for static assets instead of your origin domain. You can also use tools like pingdom, gtmetrix, webpagetest that can give you more detailed reports on your CDN implementation status.