Skip to main content

What You’ll Learn

  • Supported caching plugins and solutions
  • Automatically purging cache after updates
  • Manually clearing cache from the Dashboard
  • Configuring Cloudflare cache integration

Extension Add-on - This add-on provides standalone functionality within MainWP Dashboard. No third-party plugins required.
MainWP Cache Control extension allows you to automatically purge the Cache on your child sites after performing an update of WP Core, Theme, or a Plugin through the MainWP Dashboard. Currently supported caching solutions are
  • Cloudflare
and the following caching plugins:
  • Breeze
  • LiteSpeed Cache
  • Siteground Optimizer
  • Swift Performance Lite and Pro
  • WP Fastest Cache
  • W3 Total Cache
  • WP Rocket
  • Hummingbird Performance
  • Cache Enabler
  • Nitropack
  • Autoptimize
  • Nginx Helper
  • WP Optimize
  • Comet Cache
  • FlyingPress
  • WP Super Cache
  • Rocket.net
  • Pressable Cache Management
  • RunCloud Hub
Overview of when the last automatic Cache purge occurred and what the currently detected Caching solution is for your Child sites can be found in the table located on MainWP > Sites > Manage Sites page. Screenshot of Manage Sites table showing Cache Control columns with last purge time and caching solution

Manually clear cache

The cache will be cleared automatically upon WP Core, Theme, or a Plugin update, but you can also manually trigger the clear.

From the Manage Sites table

Cache can be cleared for any number of sites from the Manage Sites page. Select a number of desired sites, or all of them, and then from the Bulk Actions menu, select Clear Cache Control, and then click Apply. Animated screenshot showing bulk Clear Cache Control action being applied to multiple sites

Using widgets

Cache Control widgets are located on the Overview page and the Individual Child Sites Overview pages. Locate them and simply click the Clear Cache button. If you do not see the widget, you may need to enable it from the Page Settings. Screenshot of Cache Control widget with Clear Cache button

Cloudflare cache purging

For the Cloudflare cache purging to work, you must enter a valid Cloudflare API Email and Cloudflare API Key and enable “Use Cloudflare Cache API” setting. Screenshot of Cloudflare API settings with Email and API Key fields NOTE Since version 4.0.1, the Cache Control extension will handle cache purging of both Cloudflare and the supported caching plugin at the same time. Previously, if both caching solutions were present, only the caching plugin was supported.

Change Cache Control settings on All child sites

1

Login to your MainWP Dashboard

2

Go to the MainWP > Add-ons > Cache Control page

3

Enable the feature, click Save button

4

Synchronize your Child sites

Synchronize your Child sites

Change Cache Control settings on a Single Site

1

Login to your MainWP Dashboard

2

Go to the MainWP > Sites > Manage Sites page

3

Locate the Child site, open its Dashboard and go Cache Control page

Locate the Child site, open its Dashboard and go Cache Control page
  1. Override the global settings by selecting Yes or No from the dropdown
  2. Optionally, enable the Cloudflare Cache API and enable the site-specific API key Screenshot of Cache Control settings page for individual site with override and Cloudflare options
4

Click Save button

5

Synchronize your Child site