cache invalidation

Drupal send cache invalidation to Varnish on content update or delete

15 October 2025
Stale Cache Syndrome? 🤢 If your high-traffic Drupal site uses Varnish via the Advanced Varnish module, you might notice your cache isn't purging automatically after content is updated or deleted.

Learn how to write simple custom code using Drupal hooks (hook_node_update and hook_node_delete) to force instant cache invalidation (PURGE) requests to Varnish whenever a node is changed. This essential fix ensures your high-speed setup always delivers the freshest content to your users! 🚀