diff --git a/expire.drush.inc b/expire.drush.inc index 5b5a5958e1bceebf24347e0789160f6e23e67c1d..6724ab8429eb07163c330b8252cd50f6167fab96 100644 --- a/expire.drush.inc +++ b/expire.drush.inc @@ -108,13 +108,19 @@ function drush_expire_absolute_url() { function drush_expire_internal_path() { // Get drush params. - $internal_paths = drush_get_arguments(); - unset($internal_paths[0]); + $paths = drush_get_arguments(); + unset($paths[0]); - foreach ($internal_paths as &$path) { - $path = $path === 'FRONT' ? '' : $path; + $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); }