Download the PHP package jorisnoo/craft-blitz-bunny-purge without Composer
On this page you can find all versions of the php package jorisnoo/craft-blitz-bunny-purge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package craft-blitz-bunny-purge
Blitz Bunny Purge
A Craft CMS plugin that provides a Bunny CDN reverse proxy purger for the Blitz caching plugin.
When Blitz invalidates cached content, this purger automatically sends purge requests to the Bunny CDN API to clear the corresponding URLs from the CDN cache.
Features
- Automatic CDN cache purging when content changes
- Wildcard purging for full site clears (sends
site/*instead of enumerating every URL) - Batched URL purging (up to 100 URLs per request)
- Configurable API endpoint and authentication method
- Environment variable support for all settings
Requirements
- Craft CMS 5.0+
- Blitz 5.0+
- PHP 8.2+
Installation
Install via Composer:
Then go to Settings > Plugins in the Craft control panel and install the plugin.
Configuration
- Go to Settings > Blitz in the control panel
- Under Reverse Proxy Purger, select Bunny CDN Purger
- Configure the settings:
| Setting | Description | Default |
|---|---|---|
| API URL | The Bunny CDN purge API endpoint | https://api.bunny.net/purge |
| API Key | Your Bunny CDN API key | — |
| Authentication Type | Access Key or Bearer Token |
Access Key |
All settings support environment variables (e.g., $BUNNY_API_KEY).
Environment Variables
Add to your .env file:
Then reference it in the control panel as $BUNNY_API_KEY.
Config File
Alternatively, you can configure the purger via config/blitz.php instead of the control panel:
How It Works
Individual URL Purging
When Blitz invalidates specific URLs, the purger sends them to the Bunny CDN API in batches of up to 100 URLs per request:
Site Purging
When an entire site is purged, the purger sends a wildcard request instead of enumerating every URL:
Authentication
- Access Key (default): Sends an
AccessKeyheader - Bearer Token: Sends an
Authorization: Bearerheader
License
MIT