Cloudburst Icon

Cloudburst

Cloudburst Main Screenshot

Cloudburst is a Statamic addon that integrates with Cloudflare to let you easily purge cache directly from your control panel.


πŸš€ Features

  • One-click Cloudflare cache purge from Statamic CP
  • Purge a single asset's file from the cache directly from the Assets browser
  • Automatically detects and stores your Cloudflare Zone ID
  • Dashboard widget for quick access
  • Configurable via .env or config file
  • allows multi domain cache busting

πŸ“¦ Installation

Install via Composer:

composer require netnak/cloudburst

Then publish the config file (optional):

php artisan vendor:publish --tag=cloudburst-config --force

βš™οΈ Configuration

Cloudburst auto-registers itself as a widget

To manually turn it off you can use the setting in the config

'show_widget' => false

βœ… Usage

This addon requires a CloudFlare API token. It will need read access to the cloudflare API zone resources and purge access to cache purge. These env variables override defaults in config/cloudburst.php:

CLOUDBURST_ACCESS_KEY=your_cloudflare_access_key
CLOUDBURST_OVERRIDE_DOMAIN=yourdomain.com # optional override or CSV yourdomain.com,yourotherdomain.com

Or edit config/cloudburst.php directly.

Purging a single asset

Once connected, you can also purge one file at a time without flushing the whole zone:

  1. Open the Assets browser in the CP.
  2. Select one asset (or select several for a bulk purge).
  3. Open the action menu (β‹―) and choose Purge from Cloudflare.

This purges just that asset's URL(s) from the Cloudflare cache β€” handy after replacing an image or document.


πŸͺͺ License

MIT β€” see the LICENSE file for details.