This project is not covered by Drupal’s security advisory policy.

Steroids is a module with a collection of ctools plugins to integrate Drupal with Varnish and offer simple cache invalidation when editing content. While the same cache invalidation setup can by achieved by combining the contrib modules listed below, steroids aims to be an all-in-one package.

IMPORTANT: This module is mainly focused on caching setups that involve the caching of pages for logged in users. If you just want anonymous page caching invalidation, you are most likely better of with the standard purge, expire and varnish modules.



  1. Download and enable the steroids module
  2. Go to the configuration page (admin/config/development/steroids)
  3. Setup cache bypass cookies for certain roles if you want to. If you map these cookie values in your varnish.vcl, you can construct a simple cache bypass rule for certain users so they always see uncached pages.
  4. Select the expire options you want
  5. Select your varnish version and enter your varnish servers as ip:port, one per line
  6. Select the max-age settings for the predefined pages and for each content-type
  7. Optional: configure some ESI blocks

If you edit content now, you will see watchdog entries about urls being sent to the varnish servers to purge/ban. Server-side you can monitor purge/ban request with varnishlog.

Currently under development.


Module sponsored by Nascom

Project Information