esign/craft-blitz-vercel

Vercel cache purger for Blitz plugin for Craft CMS.

1.0.1 2025-02-28 13:07 UTC

This package is not auto-updated.

Last update: 2025-02-28 19:51:52 UTC


README

Stable Version Total Downloads

The Vercel Purger plugin allows the Blitz plugin for Craft CMS to intelligently purge pages cached on Vercel.

Requirements

This plugin requires Craft CMS 5.0.0 or later, and PHP 8.2 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “Blitz Vercel Purger”. Then press “Install”.

With Composer

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require esign/craft-blitz-vercel

# tell Craft to install the plugin
./craft plugin/install blitz-vercel

Usage

After installing the plugin, you can use the plugin in the control panel under Settings > Blitz > Cache Purger.

// The purger type to use.
'cachePurgerType' => 'esign\craftblitzvercel\VercelPurger',

// The purger settings.
'cachePurgerSettings' => [
   'bypassToken' => 'YOUR_BYPASS_TOKEN',
],

More information about the Vercel Build Output API can be found here.

License

The MIT License (MIT). Please see License File for more information.

Screenshot

Screenshot