You are here

function cache_actions_action_clear_varnish_cache in Cache Actions 6.2

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

Clear out the varnish cache completely.

File

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

Code

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