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).
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 13
Forks: 1
Open Issues: 0
Type:craft-plugin
Requires
- craftcms/cms: ^3.0.0-RC1
This package is not auto-updated.
Last update: 2025-04-28 11:53:52 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)