In this post you’ll learn how to install W3 Total Cache for your WordPress website. It’s a powerful caching plugin and one of the most popular plugins in the WordPress plugin directory. With this plugin, you can considerably improve the loading times and site speed of your WordPress website. Moreover, this guide is aimed at beginners, and I’ll walk you through each stage of the installation and setup process with clear and detailed instructions.
Speeding up your WordPress website by installing the W3 Total Cache plugin has two major advantages. Firstly, your visitors will enjoy a better user experience without losing their patience and yawning while waiting for your pages to load. Secondly, increasing your page loading speed also improves your ranking with Google!
Here’s a short overview of the contents of this post:
- How to install W3 Total Cache
- How to setup W3 Total Cache
- W3 Total Cache General Settings
- Page Cache Settings
- Minify Settings
- Browser Cache Settings
- Extensions: Additional Settings to Consider
- W3 Total Cache Plugin Troubleshooting
As always with installing new plugins, it’s a good idea to make a backup of your WordPress website before you install W3 Total Cache and activate it. To do that, check out my guide for backing up your WordPress website using a plugin.
How to Install W3 Total Cache
First, you should deactivate and delete any other caching plugin or solution you are using for your WordPress website. For instance, if you’re using the WP Super Cache plugin, make sure to get rid of it first.
Next, head over to the Plugins section in your WordPress admin area and navigate to Add New. You will find the W3 Total Cache plugin by searching for it. Feel free to take a closer look at the plugin details to get a better idea of what it’s all about. When you’re done, simply click Install Now.
Once the installation process is through, click Activate to get the W3 Total Cache plugin running.
Alternatively, you can download the plugin directly from the WordPress plugin directory.
How to Setup W3 Total Cache
To be honest, setting everything up with the plugin may take some time, but it’s really worth your while. Additionally, once you’re done, you can actually use the same settings for any further WordPress websites you have. That way, it’s really easy to export the settings and import them to another website that uses the same plugin.
Please note that I will only discuss the settings where you should make changes. Therefore, not all subsections are listed in the following instructions.
That said, let’s get going!
1. W3 Total Cache General Settings
First off, you need to define some general settings. These are the ones you will see when you activate the plugin and head over to the new Performance section of your WordPress admin area:
Starting off, in the General section, leave the Preview mode disabled.
Here, Enable Page Cache by ticking the box. Select Disk: Enhanced as the Page Cache Method. For Shared Hosting, you can only choose between Basic and Enhanced. Quite simply, the enhanced method is more effective than the basic one. However, should you experience any problems or errors while using the enhanced method, just switch back to basic.
However, as the W3 Total Cache plugin says itself, minification requires some testing, since no two websites are identical. Therefore, it will be a trial and error process to find the optimal settings for your website.
The plugin suggests you start CSS minification using the auto mode first. If you experience any errors or problems, you should explore other options and perhaps start by checking whether your theme is a good match with the plugin.
Thus, you can start off with these settings:
- Minify: Enable
- Minify Mode: Auto
- Minify Cache Method: Disk
- HTML minifier: Minify (default)
- JS minifier: JSMin (default)
- CSS minifier: CSS Tidy (switch to default settings if you’re experiencing problems)
However, please note that these settings will only work for WordPress websites that use shared hosting. Thus, if you’re using a dedicated or virtual hosting, you should use other settings.
Here, check the Enable checkbox for Database Cache and set Database Cache Method to Disk.
In short, database caching will decrease the response time of your WordPress website. Again, use different settings if you’re not using shared hosting.
Here, choose Enable for Object Cache and set the Object Cache Method to Disk:
Here, too, you should pick different settings for private or virtual hosting.
This one is easy: simply leave the Browser Cache setting Enabled.
Your website can run smoothly simply by using a good caching plugin and a good hosting account that allows for enough traffic. Hence, you might not need a Content Delivery Network (CDN) unless your website gets a considerable number of visitors daily. Therefore, you can leave the CDN setting disabled.
However, if you’re using a CDN for your website, check the box for Enable and choose your CDN Type from the dropdown menu.
Here, you should Enable reverse proxy caching via Varnish.
For more information, check out the website of the Varnish HTTP Cache. Additionally, there’s a good explanation about the Varnish software on Wikipedia.
Import / Export Settings:
Are you running multiple websites that use WordPress? Great!
In that case, you can export the settings you make when you first install the W3 Total Cache plugin and use the same settings for another WordPress website.
Thus, once you’re done with this installation and all the settings here, you can export the plugin configuration by clicking Download. Subsequently, just install the W3 Total Cache plugin on your other WordPress website and under Import configuration, choose your settings file and hit Upload.
And that’s it, you’re done with the general settings! These alone will have a nice effect on the performance of your website. However, to reap all the benefits of the plugin after you install W3 Total Cache, you should take a look at the detailed settings, too.
Therefore, simply follow along!
2. Page Cache Settings
You will find these settings by going to Performance > Page Cache using the navigation bar on the left in your WordPress admin area.
Here, make the following settings:
- Cache posts page: enable by checking the box
- Don’t cache front page: leave unchecked
- Cache feeds: check this box
- Cache SSL (https) requests: check if you’re using an SSL certificate
- Cache 404 (not found) pages: check this box
- Don’t cache pages for logged in users: check
- Don’t cache pages for following user roles: check this box and also, check all the user roles beneath it
Next, check the box for Automatically prime the page cache. Moreover, enter the URL of your website’s sitemap.
3. Minify Settings
Here, I’d do the following settings:
- Rewrite URL structure: check this box
- Disable minify for logged in users: check this box, too
HTML & XML:
Here, check the following boxes:
- Inline CSS minification
- Inline JS minification
4. Browser Cache Settings
Here, you should check the first six boxes:
- Set Last-Modified header
- Set expires header
- Set cache control header
- Set entity tag (ETag)
- Set W3 Total Cache header
- Enable HTTP (gzip) compression
You know what? You’re done!
Finally, make sure you have saved all changes and everything is looking OK.
Extensions: Additional Settings to Consider
The W3 Total Cache plugin also has settings for a number of specific tools you may be using. Therefore, you should check the following extensions under Performance > Extensions and activate the ones you need:
- Google Feedburner
- Fragment Cache
- Genesis Framework by StudioPress
- New Relic
- Yoast SEO
I’d guess many of us are using Yoast SEO. Thus, make sure you activate the extension if you’re using Yoast SEO on your WordPress website. If that’s not the case, you might want to read my post about using Yoast SEO for WordPress SEO!
W3 Total Cache Plugin Troubleshooting
In case you’re experiencing any errors or problems while installing and setting up the W3 Total Cache plugin, check out their support forum.
Luckily, for any error you might encounter, someone has most probably already solved it. Thus, the threads and discussions in this forum are worth browsing through if you hit a brick wall at some point.
W3 Total Cache Plugin: Summary
All in all, I hope your plugin is now all set up and working as it should.
Furthermore, as I mentioned earlier in the post, finding the optimal settings for your WordPress website may take some time. However, this installation and setup guide should give you a good start for using the W3 Total Cache plugin. Hence, it’s a powerful tool for delivering a better user experience to your visitors.
Finally, please feel free to share your thoughts about the W3 Total Cache plugin and also other caching tools you’ve used for your WordPress website in the comments below!
Also, if you found this post useful or helpful, make sure to share it so that others can discover it, too! Thanks!
Thanks for reading!