You are here

function varnish_drush_purge in Varnish 7

Same name and namespace in other branches
  1. 6 varnish.drush.inc \varnish_drush_purge()

Callback for varnish-purge drush command.

Parameters

string $paths: A space separated list of paths.

1 string reference to 'varnish_drush_purge'
varnish_drush_command in ./varnish.drush.inc
Implements hook_drush_command().

File

./varnish.drush.inc, line 37
This file contains drush integration for the varnish module.

Code

function varnish_drush_purge($paths) {
  $paths = explode(' ', $paths);
  varnish_expire_cache($paths);
}