Best W3 Total Cache Settings for WordPress

November 25, 2015
Updated
Best W3 Total Cache Settings for WordPress

The best W3 Total Cache settings for most sites are the ones the plugin's own Setup Guide recommends: Page Cache on with the Disk: Enhanced method, Object Cache on with Disk (or Redis or Memcached if your host offers them), Database Cache off, Browser Cache on and Lazy Load on. Minify is worth turning on as well, but test it first, because it is the setting most likely to break a page layout.

These steps are for W3 Total Cache 2.11.0 on WordPress 7.1. We checked the plugin's wordpress.org listing on 6 November 2026: version 2.11.0 was released on 20 October 2026, it is marked as tested up to WordPress 7.1.4, and it has more than 900,000 active installs. Older guides (including the one that used to be on this page) tick every box on the General Settings screen at once. The plugin's developer, BoldGrid, now recommends a more careful setup, described below.

What should you do before installing W3 Total Cache?

  • Remove other caching plugins. The plugin's installation notes say to deactivate and uninstall any other caching plugin first. Two page caches on one site conflict with each other.
  • Take a backup. W3 Total Cache writes caching rules to files such as .htaccess and defines WP_CACHE in wp-config.php, so keep a copy you can restore.
  • Check your versions. The plugin's FAQ says all features need WordPress 6.0 or higher and PHP 7.4 or higher.

How do you set up W3 Total Cache with the Setup Guide?

  1. In your dashboard, go to Plugins > Add Plugin, search for W3 Total Cache, then click Install Now and Activate.
  2. Open any page under the new Performance menu. The Setup Guide opens automatically the first time. You can also start it at any point from Performance > Setup Guide.
  3. Page Cache: click Test Page Cache. The wizard measures your Time to First Byte without caching and with each method your server supports. Pick Disk: Enhanced unless the test shows a clearly faster option.
  4. Database Cache: click Test Database Cache. For most sites, leave it disabled.
  5. Object Cache: click Test Object Cache and choose Disk, or Redis or Memcached if your host provides one of them.
  6. Browser Cache: leave it enabled. It is on by default.
  7. Lazy Load: enable it.
  8. Review the Cache Setup Summary and click Dashboard to finish.

Why these settings, and not every box ticked?

  • Page Cache (Disk: Enhanced): this does most of the work. It saves each page as a ready-made file so WordPress does not rebuild it for every visitor. BoldGrid recommends Disk: Enhanced for most servers and for shared hosting.
  • Database Cache (off): BoldGrid's Setup Guide documentation says modern databases are fast, so database caching often gives no gain. Turn it on only if the wizard's test shows a big improvement, which is more likely with Redis or Memcached.
  • Object Cache (Disk, or Redis/Memcached): stores the results of repeated work inside WordPress. The plugin's own notes advise testing it with and without Database Cache to make sure it helps.
  • Browser Cache (on): tells visitors' browsers to keep files such as stylesheets and images, so repeat visits load faster.
  • Lazy Load (on): delays loading images further down the page until a visitor scrolls to them.

Should you turn on Minify?

Yes, but carefully. Minify removes spaces and comments from CSS, JavaScript and HTML and can combine files. The plugin presets the recommended Minify settings in Auto mode. It is also the setting most likely to break something, for example a menu that stops opening, or a page that loses its styles.

  1. Go to Performance > General Settings and enable Preview mode. Changes then apply only while you preview, not for visitors.
  2. Enable Minify and save.
  3. Check your home page, a post, a page with a form and your shop or checkout if you have one.
  4. If everything works, deploy the changes. If something breaks, switch Minify to Manual mode and add your CSS and JavaScript files one at a time, as BoldGrid's manual minify guide explains.

How should you set up Browser Cache?

The defaults are a sensible start. According to BoldGrid's browser caching guide, the Last-Modified header, entity tags (ETags) and gzip compression are on by default, and CSS, JavaScript and media files get a one-year lifetime. Two options are worth switching on under Performance > Browser Cache:

  • Set expires header and Set cache control header, so browsers know how long to keep files.
  • Prevent caching of objects after settings change, so visitors get your new files after you update the theme or change settings.

Brotli compression is also available, but it needs the brotli PHP extension on your server.

What about shared hosting?

On shared hosting, keep to the wizard's choices: Disk: Enhanced for Page Cache and Disk for Object Cache. The plugin's own installation notes warn that the "disk" method for Database Cache may be too slow on shared hosting and suggest trying Object Cache instead. Leave the Reverse Proxy and Debug options off. If your site is using a lot of server resources even with caching on, see our guide to reducing high resource usage in WordPress.

How do you save and back up your settings?

When you are happy with the results, click Save Settings & Purge Caches on the General Settings page. Then use the Import/Export section and download a copy of your configuration, so you can restore it after a problem or reuse it on another site. Do not import settings files from old tutorials: they were made for older versions of the plugin.

FAQ

Is W3 Total Cache free?

Yes. The plugin on wordpress.org is free and includes page, object, database and browser caching, Minify and Lazy Load. W3 Total Cache Pro adds features such as Full Site Delivery through a CDN, Fragment Cache and REST API caching.

Can I use W3 Total Cache with another caching plugin?

No. The plugin's installation notes say to deactivate and uninstall other caching plugins first. Running two page caches causes conflicts.

Why did my site's layout break after enabling W3 Total Cache?

Minify is the usual cause. Turn Minify off, purge all caches and check the site again. If the problem goes away, switch Minify to Manual mode and add files one at a time.

Should I enable Database Cache?

For most sites, no. BoldGrid recommends leaving it disabled unless the Setup Guide's test shows a clear speed gain on your server.

Muhammad Dilawar
Muhammad Dilawar
Muhammad Dilawar is a WordPress developer and technical SEO specialist with over 12 years of experience building, optimizing, and maintaining websites. He specializes in WordPress, Elementor Pro, WooCommerce, server optimization, DNS, SSL, Cloudflare, website security, and performance improvements. That work has generated over $500K in revenue for clients and earned him a Top Rated badge on Upwork (top 10% of freelancers) with a 100% client recommendation rate. Through Softstribe, he shares practical guides, tutorials, and industry insights based on real-world experience helping businesses grow their online presence.
More from Muhammad Dilawar →