varnish_file_purge
The Varnish file purger is a new Drupal project developed to address compatibility issues between the Varnish Purge and Purge File modules, especially in setups where files are served across multiple domains. In scenarios involving the file_replace module, these existing modules did not effectively handle file purging, leading to stale file caches being served by Varnish.
The Varnish file purger module simplifies the integration, ensuring that file purges work seamlessly across various domains. It directly manages purging of replaced or updated files, making it compatible with multi-domain configurations and solving the setup issues that arise when using Varnish with the file_replace module.
Post-Installation
The module can be configured at /admin/config/development/varnish_file_purge
The following configuration can be added:
- Varnish connection configurations: Scheme, Host and Port
- The Purge method: whether to use the BAN or PURGE method (Keep in mind to prepare your vcl for the method selected.
- The base URL(s) of your website, so the purge happens across every single domain.
Additional Requirements
- Requires a functional Varnish set-up.
Similar projects
- The Purge file module allows you to purge files across multiple domains.
- The Varnish purge
allows you to use Varnish as CDN to purge your caches.