function drush_expire_internal_path in Cache Expiration 7.2
Callback for expire-path drush command.
1 string reference to 'drush_expire_internal_path'
- expire_drush_command in ./
expire.drush.inc - Implements hook_drush_command().
File
- ./
expire.drush.inc, line 123 - This is the drush integration for the expire module.
Code
function drush_expire_internal_path() {
// Get drush params.
$paths = drush_get_arguments();
unset($paths[0]);
$internal_paths = array();
foreach ($paths as &$path) {
if ($path === 'FRONT') {
$internal_paths += ExpireAPI::getFrontPageUrls();
}
else {
$internal_paths[] = $path;
}
}
// Expire internal paths.
ExpireAPI::executeExpiration($internal_paths);
}