Best W3 Total Cache Settings- Boost Your WordPress Website Pagespeed

Hello Friends, In this blog post I will be discussing about W3 Total Cache and how you can increase your website speed by configuring W3 Total Cache properly. W3TC is an awesome plugin but most of the WordPress bloggers (both professional as well as beginners) find it little complicated and tricky to set up as compared to other speed optimization plugins.

If configured properly this can supercharge your blog speed but if configured incorrectly then this can even break your blog completely. So to help you I have  decided to write this “How to Guide on W3TC” . I will also share screenshots  so that you can configure W3TC easily. But before starting the tutorial let me tell you in brief about W3 Total Cache and why it is the better than other speed optimization plugin in the market?

What Is W3 Total Cache?

There are many WordPress Plugins for speed optimization like Super Cache, Hyper Cache, Quick Cache, Fastest Cache and so on but no one can come close to W3 Total cache. W3 Total Cache is a powerful speed optimization plugin which not only improves your website speed but also saves your bandwidth to a large extent. Increase in website speed leads to higher rankings in Search engines, higher conversion rate, provides customer satisfaction and most importantly it will help in reducing bounce rate on your blog.

Important Features Of W3 Total Cache Plugin:

  • Compatible with shared web hosting,vps web hosting and dedicated hosting
  • Minification of CSS,HTML and JavaScript
  • Minification of posts and pages and feeds
  • Content delivery network support.
  • Add EXpiresHeaders And Etags On Your Blog
  • Page Cache
  • Database Cache
  • Browser Cache
  • Object Cache

Also Check: 5 Best WordPress SEO Plugins

Why W3 Total Cache Is Better Than Other Speed Optimization Plugins?

W3 Total Cache is recommended by popular web hosting companies like Bluehost, Hostgator, JustHost,Dreamhost,Godaddy and many more.  Yoast, StudioPress, WPBeginner, John Chow,Mashable, CSS-Tricks are some of the  popular WordPress blogs which are using W3TC on their blogs.

I have also been using W3 Total Cache Plugin on Affiliate Nova from last 7-8 months and in my opinion W3TC is best in the business.You just need to set up it properly and it will supercharge your blog speed.  So If you want to improve your website speed then I would recommend you to Install W3 Total Cache on your blog.

Increase WordPress Speed By Using Best W3 Total Cache Settings
Increase WordPress Speed By Using Best W3 Total Cache Settings


Note: Before you begin, please make sure that you are not using another Cache plugin on your blog as W3 Total Cache is not compatible with other cache plugins like Super Cache,HyperCache etc. For checking your website speed performance I recommend GTMetrix or Pingdom.  Alright without wasting any time let’s start the tutorial.

How To Install And Configure W3 Total Cache Plugin Properly?

  • Step 1: Install W3 Total Cache Plugin

First of all you will have to install W3 Total Cache Plugin on your blog. You can install it in 2 ways i.e. through ftp or directly from dashboard. It is completely up to you which method you want to use for installing this plugin. For the sake of this tutorial I will install this plugin directly from dashboard.

Go to WordPress Admin Panel Dashboard and right-click on Add New under Plugin Section. Search W3 Total Cache and Install It. You will see an image like this.


  • Step2 : Activate W3 Total Cache Plugin

After installing activate W3 Total Cache Plugin. Again repeating please delete any other cache plugin before activating W3TC or it will not work properly.


  • Step 3: Enabling Basic Settings Of  W3TC Plugin

For enabling & configuring W3TC plugin on your blog you will have to go to Performance Menu and then you have to click on General settings tab.  If you want to test W3 Total cache on your blog then enable Preview mode.

w3 total cache settings

  •     Enable Page Cache: Page cache helps in decreasing the response time on website. So Enable Page Cache and choose “Disk: Enhanced” method of Page cache.

w3 total cache settings

  •  Enable Minify:  By doing minification you will decrease the size and number of CSS, HTML and JS files on your blog. This is one of the most difficult part of W3TC. If some of your plugins or themes are breaking after enabling Minify then use auto method. Even after using auto mode your theme is breaking then simply disable minify.


  •    Enable Database Cache:  Database caching helps in reducing post, page and feed creation time.


  •    Enable Object Cache and Browser Cache

Object cache also helps in increasing website performance (especially for dynamic websites) and browser cache helps in reducing server load and decreases response time by using site visitor browser cache.

 Note: Enable object cache only if there are more than 700-800 blog posts on your blog. If you have less posts then no need of enabling it.

best w3 total cache settings

  •     CDN: Only enable this if you are using CDN such as MAxCDN,Amazon Cloudfront,AT&T etc.

CDN Settings for W3 Total Cache Plugin

  •    Network Performance and Security performance by Cloudflare : If you are using Cloudflare then only enable it else disable it. Please remember if you are using cloudflare minification then don’t use W3TC minfication.

That’s it these were the basic settings which you must enable for running W3 Total Cache Settings. Leave everything unchecked.  Now comes the hard part i.e.  configuring advanced settings of W3 Total Cache.

You may also like: How To Increase Blog Traffic-Tips By Experts

Advanced Settings For W3 Total Cache Plugin

Page Cache- Advanced Settings (Under Performance menu click on Page Cache )

  • Enable Cache Front Page
  • Enable  Cache feeds: site, categories, tags, comments
  • Enable  Cache SSL (https) requests
  • Enable  Cache 404 (not found) pages
  • Enable  Cache requests only for localhost site address
  • Enable  Don’t cache pages for logged in users
  • Enable  Don’t cache pages for following user roles-> Click Administrator
  • Save Settings.


Cache Preload:

  • Enable automatically prime the page cache.
  • Set Update interval as 907 seconds
  • Set Pages Per Interval as 15
  • Enter your sitemap url in sitemap section.
  • Check “Preload the post cache upon publish events.”
  • Save Settings

Minfy- Advanced Settings (Under Performance menu click on Minify )

  • Enable  Rewrite URL structure
  • Enable  Disable minify for logged in users
  • Minify error notification: Both Admin & email Notification
  • Save All Settings

Minify- HTML and XML Section

  • Enable Html Minify Settings
  • Enable Inline JS minification
  • Enable Inline CSS minification
  • Enable Line break removal
  • Find and add the urls of JS files one by one in the CSS minification box. Don’t add Google Adsense JS File here or your ad will not be displayed properly.
  • Save All Settings

Minify- JS

  • Enable Preserved comment removal (not applied when combine only is active)
  • Enable Line break removal (not safe, not applied when combine only is active)
  • Save All Settings

Minify- CS

  • Enable CSS Minify Settings
  • Enable  Preserved comment removal (not applied when combine only is active)
  • Enable  Line break removal (not applied when combine only is active)
  • Import Handling= Process
  • Find and add the urls of CSS files one by one in the CSS minification box.
  • Save All Settings

Minify Settings for W3 Total Cache Plugin

Advanced Settings for Database Cache : No need to play with advanced settings leave them as default.

Advanced Settings for Object Cache : No need to play with advanced settings leave them as default.

W3 Total cache Advanced  settings for Browser cache

  • Genreal Settings:Browser Cache
  • Enable Set Last-Modified header
  • Enable Set expires header
  • Enable Set cache control header
  • Enable Set entity tag (eTag)
  • Enable Set W3 Total Cache header
  • Enable HTTP (gzip) compression
  • Enable Don’t set cookies for static files
  • Enable Do not process 404 errors for static objects with WordPress
  • Save All Settings


CSS/JS Settings:Browser Cache

  • Enable  Set Last-Modified header
  • Enable Set expires header
  • Enable Set cache control header
  • Enable Set entity tag (ETag)
  • Enable HTTP (gzip) compression
  • Enable Disable cookies for static files
  • Save All Settings


HTML And XML- Browser Cache Advanced Settings

  • Enable Set Last-Modified header
  • Enable Set expires header
  • Enable Set cache control header
  • Enable Set entity tag (ETag)
  • Enable Set W3 Total Cache header
  • Enable HTTP (gzip) compression
  • Save All Settings
  • w3-total-cache-advanced-settings

Media And Other Files- Browser Cache Advanced Settings

  • Enable Set Last-Modified Header
  • EnableSet expires header –>Expires Header lifetime “31536000 seconds”
  • EnableSet cache control header ->cache with max-age
  • EnableSet entity tag (ETag)
  • EnableSet W3 Total Cache header
  • Enable HTTP (gzip) compression
  • Enable Disable cookies for static files


How To Test Whether W3 Total Cache is working properly on your blog?

To check whether W3 Total Cache Plugin is working or not you will have to first clear your browser cookies and then you will have to right-click on your webpage and select view source code. If W3 Total Cache is configured properly then at the end of file you will see the following lines which is automatically generated by W3TC.


That’s it friends. These are the exact W3 Total Cache settings which I am using here at Affiliate Nova. If you configure W3 Total Cache on your blog using this tutorial then do share your experience with me via comments. 

48 thoughts on “Best W3 Total Cache Settings- Boost Your WordPress Website Pagespeed”

  1. Hmm. Thanks for sharing your knowledge.

    Some blogger is really want to know about speed up plugins and I recommend them W3 total plugin & for configuration I recommend them your site.

  2. Hi Jagdish,
    Thanks for leaving your valuable comment. W3TC is best plguin for speeding WordPress and I am glad to know that you find this tutorial useful.

    Have a good day!!

    • Hi Vijay,
      Thanks for leaving your valuable comment. WP Super Cache is easy to install and is a great cache plugin. When i was new to blogging world then i was using Super cache but after switching to W3TC I can say that W3TC (If configured properly) is better than super cache.

  3. Helo dear deepak
    Thanks your article. I am using W3 Total Cache dan pluqin yoast to my blog wp. im using your tutorial but my blog check page speed grade D (59%) and Yslow Grade: B(89%) Page load time: 7.99s Total page size: 371KB

    how to increase the speed of my blog? there is something wrong with my hosting or my theme wordpress? my blog Thanks you

    • Hi Andrie,
      Please optimize your images and use CDN on your blog . For optimizing images you can install EWWW image optimizer plugin and if you have money then go for MaxCDN or if you don”t want to to invest in CDN then use Cloudflare Free CDN on your blog . it will speed up your blog as well protect your blog from spammers.

  4. W3 Total Cache is an excellent extension, even during setup, most things become clear during the compatibility test. Practically 50% of the option can be see there. I personaly have had few hickups with W3 Total Cache and JS minification in the past, but there are always fresh updates.

    • Hi Icah, I am doing great man what about you?. Anyway I am glad that you find my post helpful. Keep visiting Affiliate Nova.

      Have a good week!!

  5. Hi Deepak,

    I often heard from my friends that W3Cache is good plugins and helps you to reduce the loading time. I also install the plugins but facing some problem with it. But after reading this step by step guide post. All errors are out and it’s work correctly. Thanks Deepak for sharing this post. 🙂

    Bhavesh Patel

  6. Hi! Bro
    Came here through enstinemuki’s blog and found it very useful.
    Thanks for this really great and very easy tutorial, I am new to wordpress and it’s good guide for beginners

  7. Extremely helpful post. I have wasted untold hours trying to solve simple problems because I couldn’t find the right w3 total cache tutorials. But problem solved after reading this article. Great insightful Article. Thank you So Much

    • Hi Tammy,
      Thanks for dropping your comment. I am Glad to know that you are able to increase your website speed after reading this tutorial. Cheers and have a great day!!

  8. Hmm! Interesting tutorial I must remark. The W3 Total Cache Plugin settings is a bit complicated but its good to learn how to tackle it from this post.

    The step by step guide is helpful and easy to apply. I don’t use a speed optimization plugin but this post has made to reconsider my stance!

    I have shared this comment in – the content syndication and social marketing platform for Internet marketers, where this post was shared.

    Sunday – contributor

    • Hi Sunday,
      Indeed W3TC plugin is little complicated as compared to other plugins like WP Super cache,Hypercache but if configured properly this can supercharge your website speed.
      Do give W3TC plugin a try and share your blog page speed with all of us.

      Cheers and have a great day!!

  9. Hi Deepak,

    thanks for this wonderful post and i really enjoy the tips you share.

    No pro blogger will ignore the use of cache plugin like “w3 total cache” or “Super Cache’.

    w3 total cache have earn more reputation and credit from top bloggers, they are several article on the internet which talks about the benefits of using “w3 total cache” and also how to use it effectively with the aid of proper settings as you have describe in your article.

    Thanks for sharing this with us and have a wonderful day.

    I found the link to this post on Kingged and i have also kingged it on

  10. This is a very useful and comprehensive guide.

    Thank you very much. I have my blog hosted with WPengine, but all my other sites are with Bluehost, so I will bookmark this page and use it as a reference point.

    Thanks again!

    (Seen on

  11. Hi Deepak,

    W3 Total Cache sounds great as I read your post. This is a good tool also for beginners. All of us has a concern about site speed and this is something that we take very seriously.

    I have heard that this plugin is also used on sites like Mashable, Matt Cutt’s blog, CSS-Tricks, and WPBeginner as well. Additionally, popular hosts like HostGator recommend it.

    So to sum it up, this plugin is better than other Speed Optimization Plugins.

    Nice share and very informative! Thanks!

    I left this comment on, the content curation website and blogging community.

  12. Complete guide for installing and settings of W3 Total Cache Plugin. This post help me very well. Thanks Deepak 🙂

    Well, Deepak i have one question related to your website. Can i ask ?

  13. I did everthing, my grade on gtmetrix did better 67 to 79 but i do not see that final message on my source code . Can you help me please ? My website is linked to my name here…

  14. I was feeling tensed about how to do w3 total cache settings but after your post i think i should re-set my settings properly..well thanks deepak

  15. Deepak This is really good and useful article for me because i am using wordpress first time and its really hard to configure some plugin.

  16. its my third time im visiting here for the reference to set up w3 total cache of my new wordpress blog thanks for posting such articles!

  17. I have read a lot about W3 cache and its related things, however I always face some problems while loading my site. Sometimes, it takes too much time to get loaded. What could be the reason behind that?

  18. Thank you for this tutorial. I followed your direction, however, when I check my site with view source code (after emptying my browser cache), I do not have the text that shows that w3tc is set up properly. I would appreciate your help. Thank you.

  19. Dear Thanks for Great Tips… i have used above settings and got good results… But sometime Images are unable to load by default we need to make re-refresh to get images… is there any idea what might be the issue.. ?

  20. Great tutorial, Deepak!

    I’m using Thesis framework (which has its own minify), and even the Minify settings from this tutorial works fine for me!


    You have just improved my website speed (I can really see the difference).

    Thank you!

  21. Hi Deepak,

    I wrote to you earlier on a good job done on the explanation here. Reaching out to you now because I seem to be in a fix with this plugin. I followed the steps exactly like you said and for the most part it worked fine but then it crashed.

    I had registered on Cloudflare for a CDN and when I read your post again, it said that if the site is crashing or if we are using cloudflare then we should simple disable the minify option. I did that and the site still crashed.

    Do you have any suggestions for what I can do to fix the problem. Currently the plugin is deactivated


  22. Thank you, this is very helpful and detailed contents for beginners like me. I have installed this plugin and configured as you shown in details. But after this, it is not showing images on any page. Kindly write me soon.

  23. Hello,

    I use W3TC into my project but its showing Optimize CSS Delivery into google mobile speed. I want to remove so how can i remove it.

    Can any help me how to fix it?



Leave a Comment