zucommunications / rapidkit_purge
A Drupal recipe to install and configure purge modules.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:drupal-recipe
Requires
- drupal/purge: ^3.6
- drupal/varnish_purge: ^2.3
This package is auto-updated.
Last update: 2025-08-19 21:12:02 UTC
README
This recipe sets up varnish purge to connect with your local varnish
How to set up
When installing the recipe, you need to provide the following information:
- Hosted environment a - The hostname for the first deployed environment.
- Hosted environment b - The hostname for the second deployed environment.
IT should be able to provide this information
How to Disable Purger
The purger configuration is set up like this:
$config['purge.plugins']['purgers'][0] : This is the local purger $config['purge.plugins']['purgers'][1] : This is the purger on the first hosted environment $config['purge.plugins']['purgers'][2] : This is the purger on the second hosted environment
So to disable a purger on an environment you can set the value to NULL.
This example disables the purger on both hosting environments, leaving the local purger active. (you would probably want this setup on local)
$config['purge.plugins']['purgers'][1] = NULL; $config['purge.plugins']['purgers'][2] = NULL;
You can programmatically configure purper configuration per environment by using the $_ENV['APP_ENV']
variable.