function drush_cache_clear_types

8.0.x cache.drush.inc drush_cache_clear_types($include_bootstrapped_types = FALSE)
6.x cache.drush.inc drush_cache_clear_types($include_bootstraped_types = FALSE)
7.x cache.drush.inc drush_cache_clear_types($include_bootstrapped_types = FALSE)
3.x clear.cache.inc drush_cache_clear_types()
4.x cache.drush.inc drush_cache_clear_types()
5.x cache.drush.inc drush_cache_clear_types($include_bootstraped_types = FALSE)
master cache.drush.inc drush_cache_clear_types($include_bootstrapped_types = FALSE)
1 call to drush_cache_clear_types()
drush_cache_clear in commands/core/cache.drush.inc
Command callback for drush cache-clear.

File

commands/core/cache.drush.inc, line 181

Code

function drush_cache_clear_types() {
  $types = array(
    'all' => 'drupal_flush_all_caches',
    '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';
  }
  elseif (drush_drupal_major_version() == 6 && module_exists('autoload')) {
    // TODO: move this to autoload module.
    $types['registry'] = 'autoload_registry_update';
  }
  if (count(module_implements('node_grants'))) {
    $types['nodeaccess'] = 'node_access_rebuild';
  }

  // Include the appropriate environment engine, so callbacks can use core
  // version specific cache clearing functions directly.
  drush_include_engine('drupal', 'environment');

  // Command files may customize $types as desired.
  drush_command_invoke_all_ref('drush_cache_clear', $types);
  return $types;
}