X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fcommands%2Fcore%2Fdrupal%2Fcache.inc;fp=vendor%2Fdrush%2Fdrush%2Fcommands%2Fcore%2Fdrupal%2Fcache.inc;h=0000000000000000000000000000000000000000;hp=a980d622fe60a7487b3d5ab7c7889087f7781035;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/commands/core/drupal/cache.inc b/vendor/drush/drush/commands/core/drupal/cache.inc deleted file mode 100644 index a980d622f..000000000 --- a/vendor/drush/drush/commands/core/drupal/cache.inc +++ /dev/null @@ -1,101 +0,0 @@ - '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', - ); - } - $drupal_version = drush_drupal_major_version(); - - if ($drupal_version >= 7) { - $types['registry'] = 'registry_update'; - } - elseif ($drupal_version == 6 && function_exists('module_exists') && module_exists('autoload')) { - // TODO: move this to autoload module. - $types['registry'] = 'autoload_registry_update'; - } - - return $types; -} - -function drush_cache_clear_theme_registry() { - if (drush_drupal_major_version() >= 7) { - drupal_theme_rebuild(); - } - else { - cache_clear_all('theme_registry', 'cache', TRUE); - } -} - -function drush_cache_clear_menu() { - return menu_router_rebuild(); -} - -function drush_cache_clear_css_js() { - _drupal_flush_css_js(); - drupal_clear_css_cache(); - drupal_clear_js_cache(); -} - -/** - * Clear the cache of the block output. - */ -function drush_cache_clear_block() { - cache_clear_all(NULL, 'cache_block'); -} - -/** - * Clear caches internal to Drush core and Drupal. - */ -function drush_cache_clear_both() { - drush_cache_clear_drush(); - if (drush_has_boostrapped(DRUSH_BOOTSTRAP_DRUPAL_FULL)) { - drupal_flush_all_caches(); - } -}