You are here

function varnish_flush_caches in Varnish 7

Same name and namespace in other branches
  1. 6 varnish.module \varnish_flush_caches()

Implements hook_flush_caches().

Adds a varnish cache to the list of caches.

File

./varnish.module, line 87
Common functions used for the module.

Code

function varnish_flush_caches() {
  if (variable_get('cache_class_external_varnish_page', FALSE)) {
    return array(
      'external_varnish_page',
    );
  }
}