Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

How to Install and Setup WP Super Cache for Beginners

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Install and Setup WP Super Cache for Beginners

Search engines consider site speed to be an important factor search rankings. This is why at WPBeginner we try our best to improve site load speed to an optimal level. Doing that, we have noticed that caching our website helped us improve site speed as well as balancing huge spikes in traffic. We use W3 Total Cache to improve performance of our website. However, many of our readers asked us about how to install and setup WP Super Cache. Therefore in this guide, we will show you how to install and properly setup WP Super Cache.

Note: Both W3 Total Cache and WP Super Cache are great plugins. We highly recommend that you use one or the other depending on your needs.

First thing you need to do is install and activate WP Super Cache plugin (tutorial: 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.

Setting up WP Super Cache – The Easy Way

To enable cache, go to Settings » WP Super Cache. Under the Easy tab, turn Caching on and hit update status button.

Turning on Cache in WP Super Cache for WordPress

After turning on the cache, click on the test cache button to check if it is working. WP Super Cache will fetch your WordPress site twice and will compare the time stamps of both pages. If the both time stamps match then this means that caching is working on your site now.

WP Super Cache Advanced Set up

WP super cache is a powerful plugin, and it comes with many advance options. These options can further improve your site’s performance. To Set up WP Super Cache with advance options, go to Settings » WP Super Cache and click on Advanced tab.

Advance set up for WP Super Cache

Enable Caching
First check the box that says Cache hits to this website for quick access. Below that you will see three caching options. By default WP Super Cache uses PHP to serve cache files. However, using PHP to serve cache files can be resource incentive particularly on shared hosting environments. So we would like to recommend that you try using mod_rewrite to serve cache files. After that scroll down and hit the update status button to save these settings.

WP Super Cache will now show you a notification that mod_rewrite rules must be updated and possibly another notification about scheduling garbage collection. Scroll down the page, and you will see mod_rewrite rules that needs to be added. Click on Update Mod_Rewrite Rules button to update these rules. Once mod_rewrite rules are updated this section will turn green.

To resolve the notice about garbage collection, scroll down on the advance settings page to the Expiry Time & Garbage Collection section and set up a time and frequency for garbage collection of cached files on your server.

Scheduling garbage collection and setting cache expiration

Enable Compression in WP Super Cache: Compression allows WP Super Cache to serve cached files as compressed files. These files are downloaded by user browsers quickly due to their smaller size. To enable compression, simply check the box that says Compress pages so they’re served more quickly to visitors.

Setting up CDN with WP Super Cache

Most content websites serve a lot of static files with each page request. These files are JavaScripts, images, stylesheets, etc. Unlike your WordPress posts which are dynamically generated by PHP, these files can be served using a Content Delivery Network (CDN). If you don’t know what is a CDN or why you need a CDN, then you should check out our infographic “What the Heck is a CDN“.

At WPBeginner we use MaxCDN. You can read our blueprint on Why we use MaxCDN. If you need help setting up MaxCDN, then we already have a tutorial for how to install and setup MaxCDN for WordPress. The tutorial uses W3 Total cache, but the basic concept is the same.

To setup CDN with WP Super Cache, click on the CDN tab and check the box next to Enable CDN Support option. Enter your offsite URL, which will be the url of your pullzone. For example,

Setting up MaxCDN with WP Super Cache

In the additional CNAMEs field enter other CNAMEs you have created for your pullzone. For example,, ,

Lastly, check the box that says Skip https URLs to avoid “mixed content” errors and save changes. Now your website is now 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. You may ask Why would anyone want to do that?

To conserve server resources.
To serve an old site that is not being updated anymore.
To improve site speed by serving static content only.

These were just a few reasons but there could be many more reasons and situations where you might want to completely disable PHP processes. Don’t worry your WordPress will work normally, and you will still be able to manage your content with WordPress.

Preload WP Super Cache and Serve Static Files

Refresh preload cache files options will be set to zero by default, minimum required time is at least 30 minutes. 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 cache.

We hope this guide helped you setup WP Super Cache on your WordPress blog. For plugin specific support, please post all your questions in the WordPress support forums for the plugin author. Read our guide on how to properly ask for WordPress support and get it.

For other feedback and questions, please leave a comment below.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. John Johnson says:

    This is an ecommerce site using Exchange from iThemes. With WP Super Cache activated certain pages that need to be refreshed don’t get refreshed i.e. Empty Cart. When you Empty Cart it comes back with the same content or in other words it appears unemptied.
    When I deactivate WP Super Cache the problem disappears. It was suggested that I Whitelist the pages that shouldn’t be cached. I am uncertain about how to do that. Any help would be appreciated.

  2. Dajuan says:

    WP Beginner Staff, when a theme update is applied, or when other plugin updates are made, is WP Super Cache alerted to create new cached versions? Or does the plugin wait until “Expiry Time & Garbage Collection” or a manual cache deletion?

  3. Iosif says:


    I am using WP Super Cache, but it seems that my images don’t get cached. Any ideas on how to configure this?

    I did have a lazy load plug-in, but it conflicted with my theme, so I deactivated it…

  4. shubhendu says:

    I have just install wp super cache plugin by reading your article but nor js,css and image is not loading at my blog…plz help my site address is

    If you dont want to publish is comment because i include my site link PLEASE reply to my email id.


  5. madhavi jha says:

    hi , i am regular reader of your site , i have setup WP Super Cache plugin as you guide in your blog , but its not working its show only 20/100

    please guide me ,i have been tried to solve this problem since last 2 days , please guide me .

  6. nitai roy says:


    I followed as you mentioned here. Everything has done perfectly but I could not find this option: “Enable Compression in WP Super Cache:”
    Where is it please?

    Also, Now how can I know whether it is working perfectly or not?

    Thank you very much.

  7. Patel Shoeb says:

    How to Install and Setup WP Super Cache with CloudFlare CDN?

  8. kurakaniz says:

    after updating the plugin it says “.htaccess file may need to be moved” and this error too

    A difference between the rules in your .htaccess file and the plugin rewrite rules has been found. This could be simple whitespace differences but you should compare the rules in the file with those below as soon as possible. Click the ’Update Mod_Rewrite Rules’ button to update the rules.

    what to do please help

  9. stephen says:

    I installed everything just as you said but I am still getting 52sec load time and if I tried using gtmetrix I get an error saying the URL does not appear to be an HTML.home page . please help site is

  10. Megan Good says:

    This article was very helpful, and I was able to troubleshoot my issues based on your suggested settings. Thank you for the info!

  11. Omprakash Jaiswal says:

    wp super cache does not work
    Permlink 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.

  12. Hammad says:

    Thank you for your suggestions, I’m trying to apply these settings on my website now. Can you please advise if wp super cache supports minify settings.

    I had wp3 total cache and had a score of 97/81 on gtmetrix, after installing wp super cache my score decreased to 82/68.

  13. Imran says:

    Was looking for some great guide for super cache plugin. Now I will try it on my test site.
    Thanks for such a nice tutorial

  14. Robert Connor says:

    Some great tips-now i need to go back and fix my site

  15. User says:

    How do I get it to work for Mobile without changing the theme?

  16. cezars says:

    Any info for Rejected User Agents list from the plugin ?

  17. herb says:

    Installed it and got a lower grade E/D on Gtmetrix…switched to W3TC and it gave me and A/B grade.

  18. efiga says:

    i have a little question , when using this plugin to cashe pages , the google adsense ads will be cashed too ? ,it will show the same ads ?
    thank you in advance

  19. shadow says:

    does nothing for me

  20. says:

    Hi, Thank you for this outstandly good article. However, I am facing several issues with WP S. Cache.
    The website is :

    1°) My Home page is a static one. However, when a new article is published, the /home must be changed (new article in the slider and so on). However, it is no the case! Moreover, when I just “update” this static page, by a strange miracle (not so strange because with the update, the cache-page is flushed), the /home becomes “normal”.

    2°) From 1°), I decided to tick the Pages, Front page, Is_home in the rejected ones. However no changes appeared in the /home.

    Do you have an idea where could be the problem ?


    (sorry for the poor english)

  21. Farcas Gelu Danut says:

    I’m sorry for my poor English language.
    I use now WP Total Cache, CDN is Cloudflare, shared hosting.
    Specialists working at hosting company I recommend using wp super cache to replace the WPTotal Cache. What is your opinion?
    WP Total Cache internet is recommended, considered superior WP Super Cache.
    I use Google translate for this comment. Is OK?

  22. Nguyen Duc says:

    Thanks for post, but i have a problem below:
    Warning! Could not update /home/d2c45a95/public_html/wp-config.php! WPCACHEHOME must be set in config file.
    Warning! /home/d2c45a95/public_html/wp-content/advanced-cache.php does not exist or cannot be updated.

    1. If it already exists please delete the file first.
    2. Make /home/d2c45a95/public_html/wp-content writable using the chmod command through your ftp or server software. (chmod 777 /home/d2c45a95/public_html/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 /home/d2c45a95/public_html/wp-content/advanced-cache.php

    If that doesn’t work, make sure the file /home/d2c45a95/public_html/wp-content/advanced-cache.php doesn’t exist:

    1. Open /home/d2c45a95/public_html/wp-content/plugins/wp-super-cache/advanced-cache.php$wp_cache_file in a text editor.
    2. Change the text CACHEHOME to /home/d2c45a95/public_html/wp-content/plugins/wp-super-cache/
    3. Save the file and copy it to /home/d2c45a95/public_html/wp-content/advanced-cache.php and refresh this page.
    How to fix it, bro

  23. Joe Capone says:

    I have Super Cache working…the contents show all of the pages in the cache. It has increased our site speed.

    the site is

    For some reason, when I enter additional cnames and use,….
    Comma separated from content1-content10 (confirmed that all cnames are created in CloudFront districution)….I get a 404 error when saving.

    I have tried many different settings…nothing prevents the 404 from trying to save with additional cnames.


  24. Borislav says:

    Hi Guys!
    First sorry my English, because it is not very good!
    I use wordpress and Boozurk theme version 2.02.
    I have a little problem and i want little help!
    The problem is: when i use my phone and surfing my site, sometimes the theme not switch to mobile view and everything in my site is with wrong view.

    I also use WP super cashe plugin. When i activate the cashe and continue surf the site, then the theme not switch to mobile view and show me a desktop view of the site.

    When i deactivate WP super cashe plugin and delete the cashe the view of the site on my phone is perfect. The theme switch to mobile view.

    Is there any settings of WP super cashe plugin that i have to make, and when i make them the people who surf my site with mobile phones or tablets,
    to surf mobile view of the site, not the cashe page of desktop view.

    I hope you will understand me! Thank you!

    • WPBeginner Support says:

      Borislav, it seems that your theme uses php to detect mobile users and then switches the theme. When you are using WP Super Cache, it displays the standard theme from the cache, so the part where your theme detects and displays mobile theme is not executed. Your theme’s developer can help you better in this regard, or you can also try WP Super Cache’s support tab.

  25. pipdig says:

    Really useful, thanks! We managed to get one of our website’s loading time down from 6+ seconds to 0.8 using a combination of WP super Cache and Cloudlfare’s Rocketloader. Amazing!

  26. Ali says:

    by using this i wen from 82 to 92 on google page speed test thanks

  27. Thomas Frenkiel says:

    I wanted to use mod-rewrite for a website that has WordPress installed in a subdirectory.
    This seemed to cause a problem (only homepage was showing). What kind of thing is best to do in this case? Is there a way to use mod_rewrite on a sub directory?

    Thanks in advance.

    • WPBeginner Support says:

      There could be various reasons. There could be a conflict with .htaccess file in the parent directory or a comment missing # sign in your .htaccess file. You better post in plugin’s page under support tab.

  28. Shantanu says:

    Hi Sir ,
    Thanks for the post. I have a question , When i update or publish a post or page it does not appear on the homepage. This happens due to Wp Super Cache. Please help !

    • WPBeginner Support says:

      Shantanu, you should check your wp super cache settings. If everything seems to be setup correctly then you are probably viewing a cached page from your browser.

  29. Muhammad Waqas Baig says:

    Hi, I have tried settings you recommended but there is not speed improvements. Can you please guide me further. I used GTMetrix and here is my blog

    • WPBeginner Support says:

      The server load and responsiveness is an important factor in site-speed. Leverage browser caching and try to minimize loading external scripts or images.

  30. Sandra says:

    Hey guys,

    Thanks for the great blog. I just found it and I am definitely saving this one in my favorites! Keep up the good work.

    Here’s my question:

    When I try to access the WP Super Cache Settings I get the following message:

    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 used these 2 methods to access the Settings:

    1. Plugins -> WP Super Cache -> Settings
    2. Settings -> WP Super Cache

    But I still get the error message.

    How can I access the Settings to install the plugin?

    Your help would be greatly appreciated,

  31. george says:

    hi ,

    i tried to use w3 total cache in my website as in all websites it was suggested as the best , but when i put in my site everything went wrong!!!! i had a white blank screen everywhere site and admin panel , lost my mind until my provider had to make some changes to the .htaccess. i would recommend really big attention . will i have the same problems with the super cache for beginners??
    thank you

    • WPBeginner Support says:

      Yes you might have faced similar or some other problems with WPSuper-Cache as well. We understand that it is a bit complicated for beginners to setup a caching plugin. That’s why we have this step by step guide. As for blank screen we have some tips on how to fix WordPress white screen of death.

      • Pankaj Sinha says:

        I used WP Super Cache and the performance in pingdom downgraded.

        Earlier load time was 4 sec but now it is 27 sec.

        I am new to wordpress so not sure if I should continue on this.

        Please test yourself.

  32. Romeo Rjas says:

    Can I use WP super cache for wp blog that host on VPS? My friend said that WP super cache can cause some problem when it’s installed in wp site on VPS hosted. Thank you

  33. Tomé Mendes says:

    Hi there,

    I used W3 Total Cache in the past, but for some reason I started having problems with it. Maybe the reason was a miss-configuration of the Plugin.

    Anyway, I decided to allocate all the images and files of my website in a subdomain like files.domain.tld

    So now I just want to know something. After applying this steps to my website it will create a cache of the main content of my domain. Posts, Categories, etc…

    What about the files in the subdomain, how can I reduce load time of them? Should I apply CloudFlare only on the subdomain or whole website?

    The website is: (if possible take a look of what can be done)


    • Editorial Staff says:

      The plugin will create a cache of your page content. However, browser caching won’t be setup properly because you have media files in a subdomain.

      We don’t use cloudflare, so baring that in mind it would make sense to apply it to the whole site.

  34. Qasim says:


    Thank you so much for this great tutorial, I am just confused on WP super cache CDN settings. Do you need a CDN network like MaxCDN to be used with WP super cache or WP CDN works alone, where you will get the CNAMEs URLs. Also do you recommend using the plugin with cloudflare.

    • Editorial Staff says:

      The whole purpose of having CDNs is to utilize third-party cloud servers to reduce the load on your main server. Simply creating cname records on your main server won’t do much good. We don’t use Cloudflare, but you can if you like.

  35. Abdullah Salisu says:

    I don’t av any cache plugin installed on my blog. that explains why my blog load’s slow.
    Now i know. WP Super Cache is gonne be my next plugin to install on my blog…

    Thanks and kudos to the ceo.

  36. Robert Anderson says:

    Hi Guys thanks for the plugin but its way out of my league to install. It does show me just how much I have to learn . I keep all your emails so I wll have a go at this once I gain a bit more know-how. Keep up the great work lads.

  37. Suresh Khanal says:

    Hi Geremy,

    I did everything except CDN, but whenever I enable WP Super Cache, the post content is not displayed. It displays only the title and comments. If I disable caching everything is fine again. I’m troubled with this problem and could not find any solution yet.

  38. Jeremy Myers says:

    I love WP Super Cache. I use pretty much the same settings you do to get my blog to load in less than 2 seconds. Still working on getting it down to less than 1 second, but that requires further tweaks…

  39. Edward Black says:

    Maybe you can describe in a few sentences, what the difference between WP Super Cache and W3 Total Cache is?

    I use W3 Total Cache since my first WP-Project and it works ok. I started with only the basic settings and later I installed server modules like memcache… but a thing that never worked for me is the minification of css. It breaks every theme I ever used.


Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.