This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

Introducing Cloudways Community Forum. Start Discussions and Get Instant Help From Cloudways Community. JOIN NOW
Enhance your managed hosting experience with fast performance, 24x7 support and managed security. Start for Free

WordPress W3 Total Cache Configuration for Optimal PerformanceAugust 10, 2017


In this KB

  • Accessing WordPress plugins
  • Locating W3 Total Cache
  • Configuration of page cache
  • Configuration of database cache
  • Configuration of object cache & browser cache
  • Configuration of reverse cache (Varnish)


Note: Cloudways has launched its own cache plugin called Breeze – WordPress Cache Plugin.

We will explain how you can configure WordPress W3 Total Cache plugin for your WordPress/ WooCommerce website on the Cloudways Platform.

W3 Total Cache is installed by default on the Cloudways Platform for WordPress/WooCommerce and WordPress Multisite applications. If you completely override our deployment with your application files, you would be at risk to lose all that work.

This guide basically relates to the following sections of the W3 Total Cache plugin:

1. Page Cache

2. Database cache

3. Object Cache

4. Browser Cache

5. Reverse Proxy (Varnish)

Rest of the available sections will not be modified.

Step 1: Log into WordPress Admin Area

Log into the WordPress admin area of the site with your credentials.

 WP login

Step 2: Get into Plugins Section

On the left bar click on Plugins.


Step 3: Locate W3 Total Cache

Locate the W3 Total Cache plugin and click Settings to start the configuration (if W3 Total Cache isn’t installed, then click Add New at the top and search for W3 Total Cache and install it before proceeding).

Note: These settings are applicable for the latest W3TC version 0.9.5. If you are not running the latest, you can easily update it from the WordPress admin or with the following WP-CLI command wp plugin update w3-total-cache executed in your application web root.

W3 Total Cache

Step 4: Configuration of Page Cache

Check Enable and then select Disk: Enhanced from the drop-down menu. Click on Save all settings.

Step 5: Configuration of Database Cache

Check Enable button. Then select Memcached from the drop-down menu and click on Save all settings.

Step 6: Configuration of Object Cache & Browser Cache

1) Object Cache: Check Enable and then select Alternative PHP Cache (APC / APCu) from the drop-down menu. Click on  Save all settings.2) Browser Cache: Check Enable and then click on  Save all settings.


Step 7: Configuration of Reverse Proxy (Varnish)

Check Enable varnish cache purging.

For non-SSL protected websites, add your application URL ( under the Varnish servers section and click on the Save all settings button.Note: These settings will be effective only when Varnish is enabled on your web application in the Cloudways console. (To check Varnish status, navigate to the Application Management area and click on the Application settings section).

W3 Total Cache Server Settings

If you are using an SSL certificate on your website, you need to append port number 8080 at the end of your application URL (e.g. and then save the settings.

That’s it! The W3 Total Cache is now correctly configured according to Cloudways recommended settings.

Please insert Content
Have Questions? Ask From Our Helpful Community

10 Responses

  1. Martin says:

    This article needs to be updated.

    See the new settings here:

  2. Umesh Joshi says:



    Your guide for optimal performance does not state any db cache settings that you have stated in the other article. So should we enable the db cache? sure?

    Many Thanks

  3. Paul Thompson says:

    This KB article is worthless without a notation indicating it’s most-recently-updated date. Same goes for all support articles – only listing the original publication of update articles is pointless and very problematic.

  4. Luke Marshall says:

    I can’t seem to select anything other than the shared server options which most of this article doesn’t use ??

  5. Dan says:

    Did you try to use Redis with W3 Total Cache?

  6. LUSH-IM says:

    If I don’t want to use W3 Total Cache, I would have problems and conficts if I I woud use the Comet Cachet?
    I also noticed that although I unistalled the W3 there still are some files of the plugin and Cloudways on my …/wp-content/ directory..
    Pls advice

    • Cloudways says:

      You can use any plugin that you want. We deploy W3 Total Cache cause it works fine with our stack, Comet Cache may work well too but we haven’t tried. About removing W3 Total Cache you need to delete advanced-cache.php, db.php, wp-total-cache-config.php, and delete the entire w3tc folder from the Wp-content folder.

      Cloudways Team

  7. […] Follow the Cloudways guide to configure W3 Total Cache. […]

  8. […] WordPress W3 Total Cache Configuration for Optimal Performance […]

Do you still need help?

Our Technical Support team is always at work.