The Bunny CDN Purger allows the Blitz plugin for Craft CMS to intelligently purge cached pages.
Install the purger using composer. Currently this requires adding the Git repo to your composer.json
:
{
"require": {
"serieseight/craft-blitz-bunnycdn": "dev-main"
},
"repositories":[
{
"type": "vcs",
"url": "git@github.com:serieseight/craft-blitz-bunnycdn.git"
}
]
}
Then add the class to the cachePurgerTypes
config setting in config/blitz.php
.
// The purger type classes to add to the plugin’s default purger types.
'cachePurgerTypes' => [
'serieseight\blitzbunnycdn\BunnyCdnPurger',
],
You can then select the purger and settings either in the control panel or in config/blitz.php
.
// The purger type to use.
'cachePurgerType' => 'serieseight\blitzbunnycdn\BunnyCdnPurger',
// The purger settings.
'cachePurgerSettings' => [
'accessKey' => '$BUNNY_ACCESS_KEY',
'zoneIds' => '$BUNNY_ZONE_ID',
],
Read the documentation at putyourlightson.com/plugins/blitz.
Created by Series Eight.