Skip to content

Bunny CDN cache purger for the Blitz plugin for Craft CMS.

Notifications You must be signed in to change notification settings

serieseight/craft-blitz-bunnycdn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bunny CDN KeyCDN Purger for Craft CMS

The Bunny CDN Purger allows the Blitz plugin for Craft CMS to intelligently purge cached pages.

Usage

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',
],

Documentation

Read the documentation at putyourlightson.com/plugins/blitz.

Created by Series Eight.

About

Bunny CDN cache purger for the Blitz plugin for Craft CMS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published