You are here

function drush_expire_url in Cache Expiration 7

Same name and namespace in other branches
  1. 6 expire.drush.inc \drush_expire_url()

Callback for expire-url drush command.

Parameters

string $urls a space separated list of paths.:

1 string reference to 'drush_expire_url'
expire_drush_command in ./expire.drush.inc
Implementation of hook_drush_command().

File

./expire.drush.inc, line 59
This is the drush integration for the expire module

Code

function drush_expire_url() {
  $full_urls = array();
  $full_urls = drush_get_arguments();
  unset($full_urls[0]);

  // Process Full URLs
  // hook_expire_cache
  $modules = module_implements('expire_cache');
  foreach ($modules as $module) {
    module_invoke($module, 'expire_cache', $full_urls);
  }
  watchdog('expire', 'Output: !urls <br /> Modules Using hook_expire_cache(): !modules', array(
    '!urls' => expire_print_r($full_urls),
    '!modules' => expire_print_r($modules),
  ));
}