> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mainwp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cache Control

> MainWP Cache Control allows you to automatically purge Cache on your Child Sites after performing an update of WP Core, Theme, or a Plugin through the MainWP Dashboard.

## What You'll Learn

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

***

<div id="addon-data" style={{display: 'none'}} data-title="Cache Control" data-purchase-url="https://mainwp.com/extension/cache-control/" data-pricing-tier="pro" data-bundle="MainWP Pro" data-addon-type="integration" data-version="5.0" data-developer="MainWP" data-changelog-url="https://mainwp.com/changelog/mainwp-cache-control-extension/" data-owned-by="Jestart LLC" data-privacy-url="https://mainwp.com/mainwp-plugin-privacy-policy/" />

<Info>
  **Extension Add-on** - This add-on provides standalone functionality within MainWP Dashboard. No third-party plugins required.
</Info>

<iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/-ddw2U7az2o" title="Cache Control - Video Tutorial" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

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
* AccelerateWP
* 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. <img src="https://mintcdn.com/mainwp/2l_gbp8O-WEhKcrd/images/add-ons/cache-control-settings.png?fit=max&auto=format&n=2l_gbp8O-WEhKcrd&q=85&s=70a5084a45cbe863fc4d7eb4cbe05c45" alt="Screenshot of Manage Sites table showing Cache Control columns with last purge time and caching solution" width="1992" height="724" data-path="images/add-ons/cache-control-settings.png" />

## 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**. <img src="https://mintcdn.com/mainwp/2l_gbp8O-WEhKcrd/images/add-ons/cache-control-purge-action.gif?s=cb1a13f6a4f43ef5b5e330d4b4f1c0fd" alt="Animated screenshot showing bulk Clear Cache Control action being applied to multiple sites" width="1182" height="961" data-path="images/add-ons/cache-control-purge-action.gif" />

### Using widgets

Cache Control widgets are located on the [Overview](/getting-started/mainwp-user-interface) page and the [Individual Child Sites Overview](/getting-started/mainwp-user-interface) 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](/getting-started/mainwp-user-interface). <img src="https://mintcdn.com/mainwp/2l_gbp8O-WEhKcrd/images/add-ons/cache-control-purge-success.png?fit=max&auto=format&n=2l_gbp8O-WEhKcrd&q=85&s=5ad83dacfbdab1a6ce87659a5664e09e" alt="Screenshot of Cache Control widget with Clear Cache button" width="672" height="957" data-path="images/add-ons/cache-control-purge-success.png" />

## 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. <img src="https://mintcdn.com/mainwp/2l_gbp8O-WEhKcrd/images/add-ons/cache-control-cloudflare-settings.png?fit=max&auto=format&n=2l_gbp8O-WEhKcrd&q=85&s=ab4a29286b31381994c8e7769b49b07d" alt="Screenshot of Cloudflare API settings with Email and API Key fields" width="1786" height="777" data-path="images/add-ons/cache-control-cloudflare-settings.png" /> **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

<Steps>
  <Step title="Login to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Cache Control page" />

  <Step title="Enable the feature, click Save button" />

  <Step title="Synchronize your Child sites">
    <img src="https://mintcdn.com/mainwp/PMb515K3nlj7x2jI/images/add-ons/531aaaa2ca29.png?fit=max&auto=format&n=PMb515K3nlj7x2jI&q=85&s=7f68aa43789211c0ac7ee03b3a75eabb" alt="Synchronize your Child sites" width="1992" height="724" data-path="images/add-ons/531aaaa2ca29.png" />
  </Step>
</Steps>

## Change Cache Control settings on a Single Site

<Steps>
  <Step title="Login to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Sites > Manage Sites page" />

  <Step title="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 <img src="https://mintcdn.com/mainwp/2l_gbp8O-WEhKcrd/images/add-ons/cache-control-overview.png?fit=max&auto=format&n=2l_gbp8O-WEhKcrd&q=85&s=14beddcf020b56eb8f3975931dda4271" alt="Screenshot of Cache Control settings page for individual site with override and Cloudflare options" width="1994" height="607" data-path="images/add-ons/cache-control-overview.png" />
  </Step>

  <Step title="Click Save button" />

  <Step title="Synchronize your Child site" />
</Steps>

***

## Related Resources

* [Performance Add-ons](/add-ons/performance) - Browse all performance tools
* [WP Rocket Extension](/add-ons/performance/rocket-extension) - Advanced WP Rocket management
* [Manage Updates](/sites/updates/manage-updates) - Update management guide
