What is WordPress Caching & How to Install W3 Total Cache Plugin

In this post, we will learn about WordPress Caching and how to install a caching plugin such as W3 Total Cache.

Caching is basically used to speed up WordPress websites. It improves the performance of a WordPress website in the fastest ways. To implement caching in WordPress websites, several caching plugins such as W3 Total Cache, WP Super Cache, Cache Enabler etc. are available in the market. These plugins cache the WordPress posts and pages as static files, these files are then served to users, reducing the processing load on the server. This can improve performance several hundred times over for fairly static pages.

W3 Total Cache speed up the WordPress site in two ways. W3 Total Cache cuts down on the amount of time needed to generate frequently visited pages on your site. It also implements common best practices like JavaScript and CSS optimization to speed up the time it takes to download your site to a Web browser.

Following are the steps to install, configure & troubleshoot the W3 Total Cache Plugin in WordPress websites

Steps to Install the W3 Total Cache Plugin on WordPress

  1. Log in to your WordPress account.
  2. From the Settings menu, click Permalinks.
  3. Select a permalink structure, and then click Save Changes.
  4. From the Plugins menu, click Add New.
  5. Search for W3 Total Cache.
  6. Click Install Now under W3 Total Cache, and then click OK.
  7. Click Activate Plugin.

Steps to Configure the W3 Total Cache Plugin on WordPress

  1. From the Performance menu, click General Settings.
  2. In the Page Cache area, click Enable.
  3. From the Page Cache Method list, select Disk: Enhanced.
  4. In the Minify area, click Enable.
  5. For the Minify mode select Auto.
  6. From the HTML minified list, select Default.
  7. From the JS minified list, select JSMin (default).
  8. Also From the CSS minifier list, select Default.
  9. In the Database Cache area, click Enable.
  10. From the Database Cache Method list, select Disk.
  11. In the Object Cache area, click Enable.
  12. From the Object Cache Method list, select Disk.
  13. In the Browser Cache area, click Enable.
  14. In the Miscellaneous area, click Optimize disk enhanced page and minify caching for NFS.
  15. Click Save all settings.

Steps to Troubleshoot the W3 Total Cache Plugin on WordPress

First, clear your cache by clicking Performance, and then empty all caches. You should also visit your site in a different browser because by default, W3 Total Cache does not show cached content for logged in users.

If your site is still having problems, it might be a conflict between W3 Total Cache and another plugin or your theme. To identify which one, follow these steps:

  1. De-activate all plugins except W3 Total Cache.
  2. Click Performance, and then empty all caches to clear your cache.
  3. Check your site in a different browser.
  4. Enable each plugin, one-by-one, and clear your cache after you activate each plugin until you find which one is the problem.
  5. You can optionally temporarily switch to one of the WordPress default themes to see if any custom code in your theme interferes with caching.

If you have identified a conflict between W3 Total Cache and another plugin, you need to decide to activate only one of these on your site. You can contact the plugin authors about a potential solution.

If you still cannot get your site to work, you should submit a bug submission form by clicking the Performance tab, and then clicking Support to submit the form for free support and troubleshooting. Then deactivate W3 Total cache temporarily until your support request is handled.

If your site is giving a 500 error and you cannot log in, you need to log in via FTP or via the FTP File Manager and edit your .htaccess file. You should remove all code sections that look like this:

# BEGIN W3TC [section name here]
[code here]
# END W3TC [section name here]

Thanks for visiting. For queries and suggestions, emails are welcome at learnweb@hostingcolumn.com.

Subscribe to Hosting Column for latest updates and posts.