Are you looking for a way to set up WP Super Cache on your WordPress website?
Search engines like Google now consider site speed to be an important ranking factor. WP Super Cache can make your site run faster, boost your site’s SEO, and improve the user experience of your website visitors.
In this article, we’ll show you how to install and set up WP Super Cache on your website.
What Is WP Super Cache and Why You Should Use It?
WP Super Cache is one of the most popular and best WordPress caching plugins. It’s a free plugin and has over 2 million active installs.
WP Super Cache makes a copy of each page on your site in the form of a static HTML file. This way, whenever someone visits your site, they’re served the copied version quickly instead of generating the entire website from scratch.
As a result, your WordPress site’s speed and performance improve dramatically. The cache plugin skips a lot of steps behind the scenes to ensure that your visitors don’t have to wait for the page to open.
With a fast-loading website, you can see a boost in your WordPress SEO and search engine rankings. Google gives a significant advantage to faster websites, as it uses website speed as a ranking factor.
Besides that, you’ll also improve the experience of your website visitors. A site that loads quickly encourages people to visit it more often. This way, you get more engagement and conversions as users spend more time on pages.
Now, are you ready to set up WP Super Cache on your website? Let’s find out.
Setting Up WP Super Cache – the Easy Way
The first thing you need to do is install and activate the WP Super Cache plugin on your website. For more details, you can follow our guide on how to install a WordPress plugin.
Upon activation, WP Super Cache will notify you that caching is not enabled on your website at the moment.
To enable cache, go to Settings » WP Super Cache. Then under the Easy tab, go ahead and click on the ‘Caching On’ option. Once you’ve done that, click the ‘Update Status’ button.
After turning on the cache, you’ll need to scroll down to the Cache Tester section.
Once there, you should click on the ‘Test Cache’ button to check if it is working.
WP Super Cache will fetch your WordPress site twice and compare the timestamps of both pages. If both timestamps match, then this means that caching is working on your site now.
WP Super Cache Advanced Setup
WP Super Cache is a powerful WordPress plugin that comes with many advanced options. These options can further improve your site’s performance and provide more control over how the plugin will cache your site.
Enable Caching
To set up WP Super Cache with advanced options, go to the ‘Advanced’ tab in the WP Super Cache plugin. Next, click the checkbox for ‘Enable Caching.’
Below caching, you’ll see options for ‘Cache Delivery Method’. We recommend using the ‘Simple’ option if you’re a beginner and unfamiliar with editing your server files.
Enable Compression in WP Super Cache
Compression allows WP Super Cache to serve cached files as compressed files, which improves load time. These files are smaller and can be downloaded by browsers more quickly.
To enable compression, scroll down to the ‘Miscellaneous’ section and check the box that says ‘Compress pages, so they’re served more quickly to visitors.’
Enable Dynamic Caching
If you want to keep certain parts of a webpage dynamic during caching, then WP Super Cache offers an option for it.
To enable the option, you can head over to the ‘Advanced’ section and click the checkbox for ‘Enable dynamic caching.’
Enabling dynamic caching is useful in certain situations, especially if you have pages that contain frequently changing content. For example, you can speed up pages that contain ads by allowing dynamic caching.
Set Up Expiry Time & Garbage Collection
WP Super Cache lets you set up the expiry time and frequency of deleting cached pages from your server.
To start, simply scroll down to the ‘Expiry Time & Garbage Collection’ section under the Advanced tab to configure it.
The ‘Cache Timeout’ tells the plugin to remove the cached page and perform a fresh cache. The plugin will set it to 1800 seconds by default, which is great for a high-traffic website.
However, if you have a new website that doesn’t get a lot of traffic, then 3600 seconds is a good starting point.
Other than that, you can schedule a time for the plugin to check for stale cached files and remove them.
Specify Pages You Don’t Want to be Cached
By default, the plugin will cache all the pages on your site. This can increase the size of your cache files and use more resources. However, WP Super Cache allows you to add pages that you don’t want to be cached.
You can scroll down to the ‘Rejected URL Strings’ section in the Advanced tab to start. In the text box, go ahead and enter the URL string of the pages that you don’t the plugin to cache.
For example, if you have an eCommerce store, then you can exclude pages that visitors don’t often visit and save server resources. These can be the checkout page, account page, and thank you page.
When you’re done, don’t forget to click the ‘Save Strings’ button.
Setting Up CDN With WP Super Cache
Most content websites serve a lot of static files with each page request.
This includes JavaScript files, images, stylesheets, and more. Unlike your WordPress posts which are dynamically generated by PHP, these files can be served using a Content Delivery Network (CDN) service.
A CDN is a network of geographically distributed servers that help quickly deliver content to your visitors. For more details, check out our infographic on why you need a CDN.
Note: Setting up a CDN with WP Super Cache is a bit technical and will require some experience with CDNs. If you’d prefer an easier method, then CloudFlare is a free CDN provider that’s easy to set up. See our tutorial on how to set up CloudFlare’s free CDN on your WordPress site.
To set up CDN with WP Super Cache, go ahead and click on the CDN tab and then check the box next to the ‘Enable CDN Support’ option.
Now enter your offsite URL, which will be the URL of your pull zone. A pull zone tells the CDN where to find your files and how to serve them to your users. For example, you can enter the following: https://cdn.wpbeginner.com
In the Additional CNAMEs field, enter other CNAMEs you have created for your pull zone. For example, http://cdn1.wpbeginner.com
, http://cdn2.wpbeginner.com
, http://cdn3.wpbeginner.com
.
You can leave the other settings to default. Lastly, check the box that says ‘Skip https URLs to avoid “mixed content” errors’ and save changes.
Now your website is ready to serve static content from a CDN.
Serve a Static Site With WP Super Cache
The preload mode in WP Super Cache allows you to create super cache static files for all your posts and pages and serve a static website. This way, your content will load quickly whenever someone visits your site.
A super cache static file helps conserve server resources, serve an old site that is not being updated anymore, and improve site speed by serving static content only.
To start, head over to the ‘Preload’ tab in the WP Super Cache plugin. Next, you can set the time for refreshing the preload cache files.
By default, the plugin will set it to 600 minutes, but you can decrease the time if you publish multiple articles every day.
Do remember that pre-loading your entire WordPress site takes some time and consumes a lot of resources on your server. You can leave it to 0 if you do not want your static files to expire ever unless you manually refresh the cache.
After that, make sure that you check the boxes for ‘Preload mode (garbage collection disabled. Recommended).’ You can also enable preloads for different tags, categories, and other taxonomies on your website.
The plugin also offers an option to get email alerts whenever your files are refreshed. By default, it will use the ‘No Email’ setting, but you can change it by choosing an option from the dropdown menu.
When you’re done, go ahead and save your settings and then click the ‘Preload Cache Now’ button.
Expert Guides on WordPress Caching
Now that you know how to set up WP Super Cache, you may like to see some other articles related to WordPress caching.
- Glossary: Cache
- How to Easily Fix Leverage Browser Caching Warning in WordPress
- How to Clear Your Cache in WordPress (Step by Step)
- Best WordPress Caching Plugins to Speed Up Your Website
- LiteSpeed Cache vs. WP Rocket – Which One is Better?
- How to Properly Install and Setup WP Rocket in WordPress
- How to Install and Setup W3 Total Cache for Beginners
- The Ultimate Guide to Boost WordPress Speed & Performance
- How to Speed up WooCommerce Performance
We hope this guide helped you set up WP Super Cache on your WordPress blog. You may also want to see our guide on how to move a WordPress site from HTTP to HTTPS or our expert pick of the best hosting providers to speed up your site.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Syed Balkhi says
Hey WPBeginner readers,
Did you know you can win exciting prizes by commenting on WPBeginner?
Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
You can get more details about the contest from here.
Start sharing your thoughts below to stand a chance to win!
Anze says
Hey; I have a question – so preload mode enabled does not deletes old cached files – but does that means then when preloaded files are refreshed, the old ones are deleted and replaced, or does it just adding files, which would mean space on server would eventually run out?
WPBeginner Support says
When the page is preloaded a new time, the old preloaded version would be deleted and replaced.
Admin
James Omeke says
Thanks so much . This was very helpful.
I got my website up and running now
WPBeginner Support says
You’re welcome, glad our guide was helpful!
Admin
Mike Royden says
Plug in installed, but can’t get past this;
Permalink Structure Error
A custom url or permalink structure is required for this plugin to work correctly. Please go to the Permalinks Options Page to configure your permalinks.
I have gone to the Permalinks Options Page to configure your permalinks, but can’t see where I’m going wrong. Going round in circles, please help. Thanks
WPBeginner Support says
You would want to ensure your permalinks are not set to plain for that error. We recommend using the Post name structure.
Admin
Mike Royden says
Sorted! Many thanks for your advice and taking the time to reply. Cheers.
Katherine says
I’m trying to set up this plug in to get the best results, and I’m not tech-savvy at all. Your Wp advanced cache set up section is not the same as the current plugin advanced options.
WPBeginner Support says
Thank you for letting us know, we will be sure to take a look into this and update our article when able.
Admin
Simon says
I was able to speed up my homepage significantly but unfortunately it only worked for the homepage. The subpages like i.e. ‘Services’ are still really slow.
What could be the problem?
WPBeginner Support says
You would want to run a speed test for that using our guide below to figure that out:
https://www.wpbeginner.com/beginners-guide/how-to-properly-run-a-website-speed-test-best-tools/
Admin
Rainey says
Unable to activate the plugin. I get a warning message that a .php file already exists and I should manually delete it before using the plugin. Since I am not a techie I do not know where to go to delete the file. If you could put language in your update to the tutorial to guide us would be really helpful.
WPBeginner Support says
For that error, you may want to follow our guide below:
https://www.wpbeginner.com/wp-tutorials/how-to-fix-destination-folder-already-exists-error-in-wordpress/
Admin
Paul says
This post is dated. When will this post be updated? Would like to know the current status of WP Super Cache?
WPBeginner Support says
Thank you for letting us know, we do not have a specific date that content will be updated but we will take a look into updating this article
Admin
Nic says
Is there a way to export settings once you get done?
WPBeginner Support says
At the moment WP Super Cache does not have a built-in option to export settings.
Admin
ShoaiB says
Thank you for this Awesome Guide.
I’m using WP Super Cache (Version 1.7.0 ). In the above tutorial, many features are not included. plz, Update Post.
WPBeginner Support says
Thank you for your request, we will look into updating the post
Admin
Christopher says
not as easy as described…
A custom url or permalink structure is required for this plugin to work correctly. Please go to the Permalinks Options Page to configure your permalinks.
WPBeginner Support says
Thank you for reminding us of that, we’ll be sure to look into updating the article for clarification.
Admin
Ana says
Hello Support!
Thank you for all your work, I’m a complete newbie and without you, I don’t know how I’d manage.
I’m confused as regards what off-site URLs and CNames are, so I’m unable to fill in that in the form. Do I have to refer to somewhere on my page to find out or do I just create it my indicating something?
Just in case it affects somehow I’d like to inform that I run a multisite.
Thank you so much & hope you can help me,
Ana
WPBeginner Support says
Hi Ana,
The off site URL is the URL of your CDN location and CNames are different pullzones you have created on your CDN server. If you are not using a CDN, then you don’t need to make any changes to these settings.
Admin
krishna says
can i use this plugin for testing in localhost ??
i installed this plugin in localhost and in “Cache Contents” nothing cached
displaying this …
WP-Cache (0KB)
0 Cached Pages
0 Expired Pages
WP-Super-Cache (0KB)
0 Cached Pages
0 Expired Pages
is it because i can’t use cache plugin in localhost or some other issue ?
Hardik says
There is nothing called MOD_REWRITE. Everything from that step seems completely different. Please update the tutorial.
Mike says
No matter what settings I use Pingdom still gives me an F and says “The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:” and I see and “expiration not specified” message in the details. Am I missing a setting?
Akshay says
Hi Team ,
Thanks for the amazing article .
I have installed WP Super Cache with cloudflare (newbie blogger).
Can you please help me, how can I integrate cloudflare with WP super cache .
I did not found any articles or vidoes for the same .
I thought of installing WP Total , but it has not releasedthe update for recent wordpress version 4.8.1
Thank You
Sumaiya says
Hi, I wanted to speed up my site. I used this guide and customized the settings as you shown. But before installing this plugin I tested my site speed it was 4.20 sec. But after installing I check it was 6.78 sec. Why is it like this? please guide me well.
WPBeginner Support says
Hi Sumaiya,
Please test it again. If the result persists, then deactivate the plugin.
Admin
Rajeev jaiswal says
hello sir, I’m trying to integrate js and CSS code elements in twenty-seventeen WordPress theme. I use enqueue methods but it does not work, so suggest me to all about.
Sara says
I just downloaded WP Super Cache and the “Advanced” Page doesn’t have the same setup (or some of the same options!) as your screenshot and instructions. Are those dates, or did I somehow end up with an older version of the plugin?
Carrie says
Same here, my settings are different.
Abner says
Hi guys – Thanks for sharing this. I am using wp super cache and my wordpress is 4.0.1. At first, i don’t have any problem. Until recently, having a problem. My post did not appear on my website. I tried to put the caching off and my post appear. After that, I put the caching on again. My workaround was after posting article to my website, I will put my caching off to appear the post in my website, then after a few minutes, I will put the caching to on.
Few weeks doing that, and now, when I put the caching on, my post will disappear again to my website. As of now, my caching is still off.
Thanks and hope you can help me.
WPBeginner Support says
Hi Abner,
Seems like WP Super Cache is not clearing the cache when you publish new content. Please see our article on how to clear cache in WordPress.
Admin
Mark Layton says
Hello Support,
Thank You for your help with this issue while trying to install WP Super Cache.
Here is a copy of issue :
Warning! Could not update /var/www/website/wp-config.php! WPCACHEHOME must be set in config file.
Warning! /var/www/website/wp-content/advanced-cache.php does not exist or cannot be updated.
1. If it already exists, please delete the file first.
2. Make /var/www/website/wp-content writable using the chmod command through your ftp or server software. (chmod 777 /var/www/website/wp-content) and refresh this page. This is only a temporary measure and you’ll have to make it read only afterwards again. (Change 777 to 755 in the previous command)
3. Refresh this page to update /var/www/website/wp-content/advanced-cache.php
If that doesn’t work, make sure the file /var/www/website/wp-content/advanced-cache.php doesn’t exist:
1. Open /var/www/website/wp-content/plugins/wp-super-cache/advanced-cache.php$wp_cache_file in a text editor.
2. Change the text CACHEHOME to /var/www/website/wp-content/plugins/wp-super-cache/
3. Save the file and copy it to /var/www/website/wp-content/advanced-cache.php and refresh this page.
Cannot continue… fix previous problems and retry.
Already use your Envira Gallery and WP Forms and those are fantastic.
Should I just use W3 Total Cache instead?
Thank You so much for your help.
Mark Layton
WPBeginner Support says
Hey Mark,
You can try following the instructions shown in WP Super Cache. If you find them too complicated, then you can try W3 Total Cache. Good luck
Admin
sheikave Jhurreea says
Initially my website was loading for under 8 seconds which is pretty bad. But using your tutorial I was able get 90/100 for desktop performance.
But the mobile platform it remained 74/100. Could you suggest some resources where I could look up too or what is your suggestion.
WPBeginner Support says
Hey Sheikave,
Congrats! That’s impressive. You may also want to see our guide on how to fix render-blocking JavaScript and CSS in WordPress.
Admin