lifechurch/purge-fastly

Plugin adds specific field for setting fastly surrogate keys. If content has that keys it will be purged by every content save/edit action for every fastly service id(you can add ids on settings page).

dev-master 2018-12-14 20:59 UTC

This package is not auto-updated.

Last update: 2024-05-13 07:42:43 UTC


README

Plugin adds specific field for setting fastly surrogate keys. If content has that keys it will be purged by every content save/edit action for every fastly service id(you can add ids on settings page).

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later.

Installation

composer require lifechurch/purge-fastly

Configuring Purge fastly

Configure API token and Fastly services ids on plugin's settings page

You need to add that line to your entry template at the top to create relationships between keys and objects API doc

{% header "Surrogate-Key: " ~ entry.surrogateKeys %}

After entry save/edit it'll send purge request to fastly service (if surrogate keys configured for that entry)