PHPMatters Help You Better Hosting Your PHP-based Sites
How to Configure W3 Total Cache to Enhance the Performance of Your Site

How to Configure W3 Total Cache to Enhance the Performance of Your Site

Webmasters constantly face a critical problem of delay in page loading, so they try various methods to enhance the performance of their websites. As WordPress is in demand for many people are using this CMS platform for their websites, we have introduced a lot of methods about how to speed up WordPress, such as the top CDN providers.

In fact, the best way to enhance the overall performance of your website is using some plugins, among which the W3 Total Cache plugin is a popular option. The main issue is configuring this plugin because many options are not so easy to understand. Therefore, we have created a detailed step-by-step configuration guide, so that you can easily learn how to configure W3 Total Cache.

Install W3 Total Cache

Installing W3 Total Cache is just like installing other WordPress plugins. First, you have to deactivate all the other caching plugins, which you might have activated before this. W3 Total Cache might not work properly if other cache plugins are activated on your website. After the deactivation of other cache plugins, click on the plugin icon as the image showed in below, and then go to ADD NEW button. In the search box just type “W3 Total Cache”, you can now see the plugin. Then just click on install and your plugin can get installed instantly. After installing the plugin, just activate it.

Install W3 Total Cache

Once you have activated the plugin, you can see a menu named as Performance from your WordPress admin. Click on that menu, and then you can see the General Settings page allowing you to enter the configuration section of W3 Total Cache.

Configure General Settings

After you have entered this area, just enable the preview options firstly. This option makes sure that you preview the changes; by disabling it you are making sure that all the changes are not just previewed.

enable preview

Then after that you have to open the Page Cache section, and then enable it. This makes sure that your page loading time is decreased incredibly.

enable page cache

Optimize the Minify Option

Now coming to the next section, this is known as “Minify”. This section is used to reduce the overall size of the various CSS files and HTML files on your site, so that your page is not having extra space that degrades the performance greatly. Once you enable this option, your website’s performance can be increased by up to 10%.

Optimize Minify Option

Configure the Database Cache

Now that you have configured your Minify option, you must optimize the database cache too. This means that your database queries can work faster, and when there is too much traffic, your website can never crash. This increases the overall performance of the website incredibly. Just enable the Database Cache option, and this plugin can optimize your website’s database.

Configure Database Cache

Enable Object Cache for Dynamic Websites

Nowadays, people are always keen for dynamic websites, but these websites are extremely slow because of the big CSS codes. To optimize such websites, one must enable the Object Cache option too.

Enable Object Cache

Set Network Performance and Security Settings

Optimizing the network performance is really important because it helps in better loading of every single page. To enable this option, you have to create an ID on CloudFlare. Once you have created an ID, they can provide an API KEY, which is used for the activation of this service.

Get CloudFlare API Key

These are some other options available in the General Setting option. The configurations introduced in above are the most basic ones. If you have no special requirements, now you can proceed to Page Cache section to optimize your site further.

Optimize the Entire Page Cache Section

Once you have moved on from the general settings, you can visit the “Page cache section”, where you can notice a screen with several checkboxes. On the main page you have to check the first three options and leave the fourth option as shown in the given picture.

Optimize Page Cache

Modify the Minify Section

Once you have completed optimizing the page cache section, you now have to configure the minify section. Just follow the screenshot, and check the boxes appropriately as shown in the picture. All the options can be easily understood.

Modify Minify Section

All the other settings in W3 Total Cache plugin should not be changed. Most of the default settings are already done correctly to optimize your website.

Once you proceed with all these steps, make sure that you are saving all the setting after the changes have been made. If you don’t do it, then you might end up losing all the settings, and you have to do it all over again. Make sure that you follow these instructions properly to get desired results. Monitor your website’s performance by using online tools. You can surely notice the huge difference in your website’s performance after configuring W3 Total Cache.