Can installing a plugin really magically speed up your website? I’ve been playing with W3 Total Cache and its various options to boost performance to find out…
W3 Total Cache allows you to easily add many tweaks to your website which combine to provide a sizable boost in performance. Many of these tweaks you could implement yourself. However, this plugin provides a comprehensive range of techniques which can be enabled and disabled through a friendly interface. The plugin features a handy preview mode so you can try certain options before deploying them.
After installing the plugin a little setup is required. There is some code which you’ll need to place in your
.htaccess file. Depending on your server configuration, the plugin may be able to complete this step for you. If you find it can’t and you’ve setup permalinks in WordPress, you’ll already have the
.htaccess file in your root directory which you can copy and paste this code into. If the file doesn’t exist, check that you can see hidden files before creating this file yourself.
The code added to your
.htaccess file enables HTTP compression (reducing your visitors download times) and ETags.
ETags are unique references assigned to each file, these references change when the file is altered. ETags allow your browser to compare its copy of a file with the servers before downloading, preventing an unchanged file from being downloaded again. Reducing bandwidth and speeding up the end users experience.
W3 Total Cache contains many options, however the most useful I’ve found are page caching and its minification and concatenation functions.
WordPress typically generates a webpage for each request, fetching numerous template files and running off to its database to retrieve content. The process is fairly quick however for more complex or popular sites this wait can become a problem.
The “page cache” option of W3 Total Cache saves a snapshot of each generated page and serves that copy to each subsequent request. Saving server load and reducing the response time.
The minification process removes unnecessary characters such as spaces and line breaks to reduce file size.
On a basic installation of WordPress and with minimal configuration, W3 Total Cache was able to:
W3 Total Cache is clearly a powerful plugin and its optimisations not only provide your visitors with a faster experience but could even help you rank higher in search engines such as Google.