Skip to content

Commit

Permalink
Merge pull request drush-ops#643 from dawehner/render-cache
Browse files Browse the repository at this point in the history
add a render cache cc support
  • Loading branch information
weitzman committed May 24, 2014
2 parents d2d9fa3 + df33541 commit 1945cac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/core/cache.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,8 @@ function drush_cache_rebuild() {
// As this command replaces `drush cache-clear all` for Drupal 8 users, clear
// the Drush cache as well, for consistency with that behavior.
drush_cache_clear_drush();

// Clears the render cache.
drush_include_engine('drupal', 'cache', drush_drupal_major_version());
drush_cache_clear_render();
}
8 changes: 8 additions & 0 deletions commands/core/drupal/cache_8.inc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function _drush_cache_clear_types($include_bootstrapped_types) {
'block' => 'drush_cache_clear_block',
'module-list' => 'drush_get_modules',
'theme-list' => 'drush_get_themes',
'render' => 'drush_cache_clear_render',
);
}
return $types;
Expand All @@ -62,3 +63,10 @@ function drush_cache_clear_css_js() {
function drush_cache_clear_block() {
\Drupal::cache('block')->deleteAll();
}

/**
* Clears the render cache entries.
*/
function drush_cache_clear_render() {
\Drupal::cache('render')->deleteAll();
}

0 comments on commit 1945cac

Please sign in to comment.