You are here

function cache_actions_action_clear_varnish_cache in Cache Actions 7

Same name and namespace in other branches
  1. 6.2 cache_actions.rules.inc \cache_actions_action_clear_varnish_cache()

Clear out the varnish cache completely.

File

./cache_actions.rules.inc, line 577
This file provides the rules integration for this module.

Code

function cache_actions_action_clear_varnish_cache() {
  if (module_exists('varnish')) {
    varnish_flush_caches();
  }
}