Want to know on “How To Setup W3 Total Cache” Plugin?

So Why is W3 Total Cache the greatest and one of best Caching plugin to speed up your WordPress Blog? Because it is a awesome caching plugin Hands down. Now let us look at on, how to setup w3 total cache and of course Wp-Super Cache is great as well. W3Tc plugin can and will improve your website’s speed dramatically, but lots of users that download and install this plugin they do not know how to set it up the right way and end up uninstalling it and never use it. We will demonstrate what is the best way to setup W3 Total Caching plugin on a shared hosting plan which is what most people use and the safest way not to crash your website. To add a note did you know that W3 total cache is made by one of the CEO from Mashable?


  • Setting up Page and Browser Cache Settings, easy method no errors and fast Loading times
  • Minification settings, advanced technical Themes might not support this settings.
  • CDN Content Delivery off loading our CSS & Java Script Files to the clouds
  • Recommend not using Database or Object Caching on Shared Hosting
  • Extra Tweaks to make W3TC perform even Better With SSL HTTPS Certificate if used.

In General Settings: Enable only Page Cache and Browser Cache. This is actually the best settings for shared hosting, since you only have limited control across your hosting account. Even Hosting company’s recommends disable Object Cache and Database Cache. However, you don’t have to panic about enabling only Page and Browser cache and leaving Minify untouched since minification has only little effect on page load time. Minify settings often cause theme incompatibility and some errors. It’s also not a big deal to touch Object Cache and Database Cache unless you want things to be over complicated that your server can’t pretty much handle. time to go on to the settings now.

Page Cache General


  • For many blogs this is your most visited page, it is recommended that you cache it.

  • Even if using a feed proxy service, enabling this option is still recommended.
  • Turn this on if you use SSL Certificate on your site:
    Cache SSL requests (uniquely) for improved performance.

  • Search result (and similar) pages will be cached if enabled. Usually this is Off by default or Greyed out, we leave query string caching off
  • Leaving this off is best option specially because of SEO:
    Reduce server load by caching 404 pages. If the disk enhanced method of disk caching is used, 404 pages will be returned with a 200 response code. Use at your own risk.

  • Cache only requests with the same URL as the site’s.

  • Unauthenticated users may view a cached version of the last authenticated user’s view of a given page. Disabling this option is not recommended.

  • Select user roles that should not receive cached pages: Check mark everyone except Subscribers.
  • Cache Preload

  • Automatically prime the page cache
  • Sitemap URL: give only the url for your site map after your domain name like /sitemap_index.xml for example that is Yoast plugins sitemap.
  • Preload the post cache upon publish events. You want to refresh the cache when you post a new article or page, it helps to get Google’s Bot come right back to your site for Quick SEO and article inclusion to search engines.
  • Purge Policy: Page Cache Leaving this as Default works just great.
  • Advanced Settigns

  • Late initialization: Leave this off this setting is usually greyed out or off by Default anyways.
  • Compatibility mode: Decreases performance by ~20% at scale in exchange for increasing interoperability with more hosting environments and WordPress idiosyncrasies. This option should be enabled for most sites. Turning this on Can Help in certain situations and with different hosting company’s you can turn it on and run a Speed test on your site to see if it helps generate cache faster or any performance gains by using Compatibility mode.
  • Disable UTF-8 blog charset support
    Resolve issues incorrect odd character encoding that may appear in cached pages. Leaving it off is best W3tc setting
  • Disable caching of HEAD HTTP requests
    If disabled, HEAD requests can often be cached resulting in “empty pages” being returned for subsequent requests for a URL.
  • garbage collection for a medium site with couple thousand or less traffic leave default numbers will work well.

browser-cache-settings-2014 browser-settings-css-javascript1 w3tc html-browser-settings for W3 Total Cache media-and-other-files-settings W3TC settings page-cache-settomgs-w3-total-cache page-cache-4 W3 Total Cache Settings How to Configuration page-cache-5 settings for W3TC plugin page-cache-6 configuration picture W3TC plugin page-cache-7 WordPress Speed Optimiziation for W3TC page-cache-general-settings W3tC How to setup guide page-cache-gen-settings guide for W3 total Cache

Me personally recommend defer parsing on before /body and after body tags. Leave the header default since jQuery lots of times needs to be loaded first for some sliders and WordPress functionality to work properly, this will reduce the blocking of the page and will appear almost instantly to viewers.pro guide on How To Setup W3 Total Cache settings

W3 Total Cache settings for Manual Minify Settings.

  • Rewrite URL structure (If disabled, CSS and JS embeddings will use GET variables instead of “fancy” links.) Make sure this is CHECKED.
  • Disable minify for logged in users (Authenticated users will not receive minified pages if this option is enabled.) Make Sure This is checked you want un minified pages when you work on your website.

For HTML & XML

  • Check on enable, inline CSS minification, inline JS minification and line break removal.

For CSS

  • Check enable, preserved comment removal and line break removal. Preview your Site for any errors, we must check this to see if something is broken in our layouts i recommend Clearing all Cache or Empty at least page cache to get freshest results.

W3 Total Cache settings for Manual Minify Settings Html Settings

 

W3 Total Cache settings for Manual Minify configuration w3tc

W3 Total Cache settings for Manual Minify Settings Javascript Settings

There is one more setting which is the Content Delivery Network

If you have amazon s3 or Cloudfront or Cloudflare you can add your credentials and use that option. CDN will boost your speed the most, you can read up on how to setup CDN for your site (here.)
How ever we show you here what settings you will need to make your WordPress blog Fly like a rocket with CDN!

First thing first Choose your CDN provider on the General Settings Page, the preferred method is Pull/Origin and not Push.

Head over to the CDN Settings Page and these Steps are very important because you don’t want to serve logged in information to your visitors, as well these settings are the most optimal way to make your site fly and safe!

Check The following on CDN settings TAB also we included pictures for you guys to explain how to configure CDN with W3TC plugin.


  • If checked, all attachments will be hosted with the CDN.

  • If checked, WordPress static core file types specified in the “wp-includes file types to upload” field below will be hosted with the CDN.

  • If checked, all theme file types specified in the “theme file types to upload” field below will be hosted with the CDN.

  • If checked, minified CSS and JS files will be hosted with the CDN.

  • If checked, any file names or paths specified in the “custom file list” field below will be hosted with the CDN. Supports regular expressions
  • What Ever you do DO NOT CHECK THESE, it will mess up your permalinks to your images and a lot more problems so pretty please leave,
    Download attachments hosted elsewhere into your media library and deliver them via CDN OFF
  • Access key ID: Enter your login credentials
  • Secret Key: enter your password given by your CDN company
  • Origin SSL you can create a new one but if you have already configured your CDN you can use a CNAME please read on how to set up CDN previously mentioned. This settings should be self explanatory
  • Test your Distribution to see if CDN is reachable a Green TEST Success should be shown
  • Disable CDN on SSL pages
    When SSL pages are returned no CDN URLs will appear in HTML pages. you can leave this settings off or on because most CDN Companys Now support both HTTP or HTTPS at same cost no extra bandwidth charges apply! Turn this on specially if you use your site HTTPS SSL certificate
  • Disable CDN for the following roles
    Select user roles that will use the origin server exclusively: Administrator Editor Author Contributor Subscriber Leave Subscriber unchecked
  • Set cookie domain to “spazlport.com”
    If using subdomain for CDN functionality, this setting helps prevent new users from sending cookies in requests to the CDN sub-domain yes this setting is important because we do not like to send cookie requests to our sub-domain CDN ex. cdn1.yourdomain.com

These are the configuration settings you need for a good and quality running CDN setup for WordPress, here are the Images to demonstrate the settings.
By any chance you don’t have a CDN Service Provider, we recommend you to sign up for one it is only 9$/Month and you can use 2-3 websites, here is our 20% off Promotion Offer so you get a discount by using this promo link yes its a affiliate link however it is a win->win->win situation :) MaxCDN We try to help fellow WordPress Folks as much as we can.
W3TC CDN Content Delivery Network SettignsW3TC CDN Content Delivery Network configuratoinW3TC CDN Content Delivery Network advancedW3TC CDN Content Delivery Network cookies
In this tutorial i will go through how to setup your WordPress website to run smooth with Godaddy your favorite caching plugin W3TC.

Alright then here are the steps it is actually really easy since Godaddy offers now Op-caching for their shared hosting services in other words we don’t have to use Disk enhanced settings anymore and it really speed up all my friends sites who host they WordPress with Danica Patrick.

Godaddy W3 total cache Settings with Danica Patrick

Once you installed the W3TC plugin go to the General Tab and use the following settings to unleash opcode or APC caching which is memory caching rather then disk and it will pre-compile the PHP code from WordPress, i promise you will see a huge improvement for speed load times. All these APC settings are just under Disk Enhanced by the Dedicated/Virtual servers, no worry’s it is available to use with go-daddy. It is worth noting that the guide godaddy has on their forum on how to setup W3 Total Cache was written by a blogger and not their technical guys and is really outdated you can read it here.

  1. Page Cache Settings – Set page caching method to Opcode: alternative php cache (APC)
  2. Minify settings: if you are going to use this setting also use opcode: APC caching, how ever that’s more of a trial error and usually never works right i recommend a stand alone plugin for Minify options.
  3. Database Caching: leave this Option Off the purpose of this plugin is that it creates static HTML pages and it rarely has to even communicate with MySQL database whatsoever.
  4. Object Caching: Set this immediately to Opcode: Alternative Php Cache (APC) to get some juicy caching and speed for our site and click enable just like on all the others.
  5. Browser cache: Check mark this if it is not already but when you install W3 Total Caching Plugin it comes turned on standard.

All in all this are the basic settings you really need, if you just do this steps i showed you Godaddy hosting user friends :) and empty out all cache log out or use a different browser to you site and check your sites speed, you will see a huge improvement right away, then you always can go to Gmetrix or some other speed test sites and see that Opcode Caching even tough on shared hosting it is much faster then your slow Disk:enhanced settings because you use memory instead of a hard drive.


This little one option setting is located in Page Cache Settings TAB. Turn this on if you have HTTPS WordPress setup it will improve your loading speeds dramatically it worked very well for us on 10 ssl websites.
Cache SSL (https) requests: Cache SSL requests (uniquely) for improved performance.

Bottom line is make sure Object Cache and Database cache is off, only turn on Object cache if you have over 10,000 posts on your site. Use Disk (Enhanced) settings, how ever you should make sure with your hosting provider if they support basic or Disk enhanced or some other caching they could enable for you like APC.

So speak your mind’s express opinions on How To Setup W3 Total cache Plugin? On this famous CMS (content management system) WordPress for our shared hosting article. Let me know if i missed anything or have any question regarding this performance tricks with w3tc caching plugin for high Google page speed which is important for SEO now days on our major search engine’s.

Sharing is Sexy!

    • Hope all this helps on your shared hosting environment, but i do strongly suggest a CDN service like cloudflare, amazon cloudfront with s3 storage or google page speed services :) for best results! Iam using amazon cloudfront at the moment it works great how ever google page speed CDN on my other sites work miracles.

  1. Thank you for your time to wrote this informative article about w3 totol cache.I have suffered tragic problem with plugin, i did not know how to work it for the best used and functions.You have helped me! thank!

  2. Hi,

    Could you make it even easier for us?

    Could you upload the settings file so that we are able to upload this file in the W3 import/export settings?

    That would be great and much appreciated! (for those with 100 blogs..)

    • Gio yes sure that is possible give me a day or two and i will upload the Best and safest configuration file for w3tc plugin so you can just apply it on all your blogs :), have a question tough do you use multisite for all that many blogs or single install’s?

  3. My hosting provider support memached, i see this plugin suport memcached but what size i will use i see on cpnael 2 options 32Mb and 64Mb ?

    • I would recommend 64 to start, if your blog is heavy with plugins you can try 96/128 but 32 or 6 should be fine, ask your hosting provider which they recommend sometimes they have restrictions. Thx for the comment :)

    • Your Welcome Kamran hope it helped your inquiry on How To Configure W3 Total Cache Plugin for WordPress on a shared hosing environment.

  4. Thanks a lot. I just shifted from WP Super Catche to W3TC and the database cache thingy is confusing me a lot. Have seen mixed responses where many ask to not to touch it and some equal number of reviewers asking to enable everything that W3TC includes.
    I’m gonna leave the Database cache as I don’t think DreamHost will let me keep it enabled for long :P

    • @Narender leave database caching off for shared hosting unless you have 10000 posts on your site and heavy trafic of visitor’s.. I would leave object caching off also..database and object caching slow down or break or do more work on a shared hosting with disk enhanced caching if it was memcache or eacceleration then i would say turn it on but thats for vpn or cloud hosting :)

  5. do not understand though correct settings for JS minnification where you select before and before/after what to select for EACH?
    blocking or NON blocking using…??? This would complete your article I think.

  6. @Ndha i try vestacp control panel and it always causes problems for me on VPS setup, you have to check what caching your using on vps this is for shared hosting this guide, what ever you do in vestacp and if it is a vps hosting you have, please disable object, database, minify and only enable page cache and browser, also disable gzip in browser settings most likely your server already gzips html. After this its basic setup, now you should install memcache or APC opcode cache and then configure W3TC plugin to use that type of caching instead of Disk. If that works then you can turn object back again and set it to opcode or memcache. How ever this deserves another whole article on how to setup W3TC on VPS because there are just so many ways doing it and it really all depends on your settings. let me know..but i do recommend a amazing control panel its like cpanel almost for free and pretty light http://centos-webpanel.com/ that is if your using centos and not ubuntu or other distros

  7. Thanks Pal ! Your post is damn helpful to me. I just shifted to W3TC and the database cache thingy is confusing me a lot. Have seen mixed responses where many ask to not to touch it and some equal number of reviewers asking to enable everything that W3TC includes.

  8. @Narender Your right it is confusing, look at it this way, object cache and database caching is for dynamic sites, which means they update posts and content changes very often, then these caching will help, if it is a 1-5 person ran website content usually is always same except comment’s, so the plugin would do extra work for nothing, and not to mention Disk enhanced is to slow on shared hosting and making so many resources from the server will slow down the site because it is shared hosting, if you where on VPS it be a different story. Database and Object caching with W3 Total Cache is a waste of time on Shared hosting, plus most likely your site actually will be slower from those.

Leave a Reply