Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 943 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 943 Bytes

Purge fastly plugin for Craft CMS 3.x

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)