glue-agency / craft-varnishpurge
A plugin that lets you purge varnish cache
Installs: 823
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 1
Open Issues: 0
Type:craft-plugin
Requires
- craftcms/cms: ^4.0.0
- jeslopcru/varnishadmin: dev-master#825c2693ca1b88414f111868d2cf0781fc0484de
README
Allow purging of urls and tags from the Craft CMS interface.
By default only url purging is enabled for non-admins. Enabling tag purging for other users or groups can be done on the permissions page.
Configuration
You can either use a dedicated config file, or use environment variables to keep secrets out of version control.
Config file
Create a varnishpurge.php
file in your config folder.
<?php
return [
'ip' => '127.0.0.1',
'port' => '6082',
'version' => '5.0.0',
'secret' => '[YOUR-PRE-SHARED-SECRET-AS-SETUP-ON-VARNISH-SERVER]',
];
Env variables
Define your environment variables in the plugins settings page & in your .env file