function hook_drush_cache_clear

8.0.x drush.api.php hook_drush_cache_clear(&$types, $include_bootstrapped_types)
6.x drush.api.php hook_drush_cache_clear(&$types)
7.x drush.api.php hook_drush_cache_clear(&$types)
4.x drush.api.php hook_drush_cache_clear(&$types)
5.x drush.api.php hook_drush_cache_clear(&$types)
master drush.api.php hook_drush_cache_clear(&$types, $include_bootstrapped_types)

Add/edit options to cache-clear command.

Parameters

array $types: Adjust types as needed. Is passed by reference.

bool $include_bootstrapped_types: If FALSE, omit types which require a FULL bootstrap.

1 function implements hook_drush_cache_clear()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

views_drush_cache_clear in commands/core/views.d8.drush.inc
Implements hook_cache_clear. Adds a cache clear option for views.

File

./drush.api.php, line 313
Documentation of the Drush API.

Code

function hook_drush_cache_clear(&$types, $include_bootstrapped_types) {
  $types['views'] = 'views_invalidate_cache';
}