Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Content Translation Redirect Module content_translation_redirect crossed 1,000 active installs.

Varnish

1,887 sites Security covered
View on drupal.org

This module integrates Drupal with Varnish, a fast HTTP accelerator, to improve site performance. It allows Drupal to dynamically invalidate cached content in Varnish and query its status.

This module provides integration between your Drupal site and Varnish cache, an advanced and very fast reverse-proxy system. Varnish is a HTTP accelerator that sits in front of your application web-servers and handles serving static files and anonymous page-views for your site.
Varnish is incredibly fast and efficient, but like all caching systems, it needs help to perform invalidations.

This module provides integration with Varnish via it's socket-based administration interface, which allows Drupal to dynamically invalidate cache entries, and also lets you query the Varnish admin interface for status, etc.
As such it requires the PHP sockets extension. If you are unable to enable that, then the Varnish purge module provides an approach using a HTTP client for invalidation.

The module is not ready for Drupal 10. We working on compatibility, but for now we recommend using Purge module with Varnish purge module instead.

Drupal 7 version

Is stable, working well, but is minimally maintained.

Drupal 5 and 6 version

Not supported anymore.

Compatibility

At the moment, using Varnish to any effect at all requires Drupal 7 or PressFlow.

We currently support Varnish 2.0, 2.1, 3 and 4 (Drupal 7 only).

Helpful information for those new to Varnish:

Also, this module is beginning to implement dynamic cache expiration via the expire module, which will allow for much longer page lifetimes (and thus higher cache hitrates!).

Recommended modules

Modules that should work good in combination with the varnish module.

http://drupal.org/project/cache_actions
https://drupal.org/project/cache_control
http://drupal.org/project/cookie_cache_bypass_adv
http://drupal.org/project/esi
http://drupal.org/project/expire
http://drupal.org/project/purge

Trademark

"Varnish" is a registered trademark used with permission from Varnish Software.

Activity

Total releases
1
First release
Jan 2026
Latest release
5 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
2.1.0-alpha1 Pre-release Jan 26, 2026