Share
WordPress’s flexibility and power have increased dramatically over the years. What began as a humble blogging solution is now powering millions of websites worldwide, large and small, and forming an entire industry’s backbone. That increase in reach and functionality comes at a cost; however, the platform is naturally database-intensive, and performance can be an issue.
Regardless of website size, implementing some caching solution is a sensible way of mitigating this risk on any standard WordPress install, and it becomes increasingly important the more traffic you have.
In this article, we’ll run the rule over W3 Total Cache (W3TC), one of the most popular WordPress caching solutions. We’ll provide some background on its use and a simple overview of getting it up and running. Let’s start, though, with a brief look at caching itself.
Overview
What Is Caching and Why Is It Necessary?
Simply put, caching is the process of storing data from existing requests to reuse for subsequent requests. Rather than repeatedly requesting more or less the same information to display a page, caching stores data that has already been requested and serves it up instantly.
The overall result is faster page load times and an improved user experience. In terms of WordPress, caching can take place in two locations:
Caching is a crucial part of overall WordPress optimization and can significantly improve a website’s performance and speed if configured correctly. Because speed is a considerable factor in SEO performance and user satisfaction, it’s imperative that you do as much as you can to improve it.
History of The W3 Total Cache Plugin
W3 Total Cache (W3TC) is the brainchild of Mashable’s (CTO) Frederick Townes. Describing itself as a “web performance optimization framework,” the plugin promises reduced server load, 10x improvements in overall site performance, and transparent CDN integration.
W3 Total Cache is a free plugin, though extra paid assistance is available. A W3 Total Cache Pro option is also available, with advanced functionality split into three paid tiers. The free version advertises itself as integrating seamlessly with your current WordPress theme and fitting snugly into most hosting setups.
A current install base of one million+ users suggests it has primarily made good on those promises. Many blue-chip sites have also trusted W3 Total Cache since its initial launch. Along with Townes’ work for Mashable, high-profile sites such as yoast.com, ilovetypography.com, smashingmagazine.com , and Matt Cutts have all plumped for this plugin as their caching solution in the past.
With the introductions out of the way, let’s move on to setting it up.
Why Use The W3 Total Cache Plugin?
The W3 Total Cache (W3TC) plugin is a tool that can improve SEO and your site’s user experience by improving website performance and reducing load times through features like Content Delivery Network (CDN) integration and various caching mechanisms.
According to W3TC:
Requirements And Installation
To install and use the W3TC plugin effectively, ensure that your website hosting environment meets a few basic requirements and follow some straightforward steps.
Requirements
1: WordPress
2: Hosting Environment
3: Permissions
4: Other Technical Considerations
Installation
1: Via WordPress Admin Panel
2: Manual Installation
3: Configuration
Plugin Setup Guide And Features
The Total Cache setup wizard provides detailed instructions on installing, configuring, and optimizing the W3 Total Cache plugin on a WordPress website. The guide aims to help users maximize their site’s performance by leveraging the plugin’s various caching and optimization features.
Below is a bird’s eye view of this guide and how it can help remove the guesswork when optimizing your website for performance.
- 1Welcome
- 2Page Cache
- 3Database Cache
- 4Object Cache
- 5Browser Cache
- 6Image Optimization
- 7Lazy Load
- 8More Caching Options
General Settings
The General Settings menu option is your key to deciding which modules of W3 Total Cache’s functionality you want to enable. For this beginner’s overview, we will concentrate on a stripped down subset that can be put to use on even the simplest of site setups.
Preview Mode
The first point to note in the Performance > General Settings panel is the Preview Mode option. This gives you a simple way of testing configuration changes before they impact on your users. Switch to Enabled to safely test changes prior to deploying in a live environment.
Page Cache
Our next option is Page Cache. Enabling this will store a static version of frequently requested pages on your server that can be pushed to users immediately, rather than WordPress having to make a round-trip to the database.
It’s recommended that you enable this option and set the page cache method to Disk: Enhanced. This should perform reasonably on even the most basic of hosting setups.
Minify
The Minify module controls whether HTML, CSS and Javascript files are compressed and minified. Minification is simply the process of removing all unnecessary data from the code without affecting performance. This is something of a minefield when it comes to configuration as there a lot of moving parts that could potentially interact negatively with each other.
For the purposes of this tutorial, we suggest simply giving the default settings a quick test in preview mode to see if anything obviously breaks on your site. We’ll go into the intricacies of this module in greater depth in a future tutorial.
Browser Cache
The final option we’ll look at in this overview is the Browser Cache module. This is where you can configure how the end-user’s browser should handle your pages and page elements, and how much information should be cached on the client side.
Ensure this module is activated when you first set up W3 Total Cache. It’s an easy win in terms of performance and reducing the load on your server.
As with the Minify module – and indeed the plugin as a whole – there is a range of further fine-tuning available to you. To begin with, we recommend enabling the settings shown below in Performance > Page Cache as a starting point.
Other Modules
As you’ll doubtless have noticed by now, there is a comprehensive array of advanced options available throughout the plugin, but it is important to proceed bit by bit when you are first getting to grips with it. Enabling Database Caching out of the box, for example, could actually hurt your site’s performance rather than bringing any improvements if you are on a shared hosting setup. The Object Cache is likely to be similarly useless if you are on shared hosting.
CDN options will also obviously not be relevant unless you have actually signed up with a Content Delivery Network. We’ll go through the ins and outs of some of these modules in future posts, but it’s best to leave them disabled when you are starting out.
Saving Your Work
With the amount of potential configuration settings on offer, it’s a good thing W3 Total Cache comes with the option of importing and exporting configuration sets. If you go back to Performance > General Settings and scroll all the way to the bottom, you’ll see the import/export settings section – a useful option to have.
Profiling Your Results
It’s important that you have some sort of benchmark to compare your before and after results against when testing any sort of optimization improvements.
There are a lot of options out there but Google’s Pagespeed Tools are a wonderfully straightforward solution for beginners looking to get meaningful pre- and post-caching numbers to compare.
Alternative Caching Options
W3 Total Cache is of course not the only WordPress caching solution out there.
A quick root around the internet will turn up all manner of other contenders, but the two most common alternatives are the following:
Conclusion
Caching is a famously tricky area and the amount of variables and moving parts at play can be overwhelming for a beginner.
The advantage of tools such as W3 Total Cache is that they put a number of easy wins such as page and browser caching within reach of novice users from within WordPress itself, while also opening the door to an enormous amount of fine-tuning functionality for experts.
For users just starting off with optimizing their sites, we recommend the following sequence as a starting point:
We’ll move on to exploring this plugin in more depth in future articles but we’re curious to hear if you’ve had any successes, difficulties with implementing it yourself or questions about Avada. Let us know in the comments below!