function _drush_cache_clear_types

8.0.x cache_8.inc _drush_cache_clear_types($include_bootstrapped_types)
8.0.x cache.inc _drush_cache_clear_types($include_bootstrapped_types)
7.x cache_8.inc _drush_cache_clear_types($include_bootstrapped_types)
7.x cache.inc _drush_cache_clear_types($include_bootstrapped_types)
master cache_8.inc _drush_cache_clear_types($include_bootstrapped_types)
master cache.inc _drush_cache_clear_types($include_bootstrapped_types)
1 call to _drush_cache_clear_types()
drush_cache_clear_types in commands/core/cache.drush.inc
All types of caches available for clearing. Contrib commands can alter in their own.

File

commands/core/drupal/cache.inc, line 39
Engine for the cache commands.

Code

function _drush_cache_clear_types($include_bootstrapped_types) {
  $types = array(
    'drush' => 'drush_cache_clear_drush',
    'all' => 'drush_cache_clear_both',
  );
  if ($include_bootstrapped_types) {
    $types += array(
      'theme-registry' => 'drush_cache_clear_theme_registry',
      'menu' => 'menu_rebuild',
      'css-js' => 'drush_cache_clear_css_js',
      'block' => 'drush_cache_clear_block',
      'module-list' => 'drush_get_modules',
      'theme-list' => 'drush_get_themes',
    );
    if (drush_drupal_major_version() == 7) {
      $types['registry'] = 'registry_update';
    }
  }

  return $types;
}