Skip to content

Commit

Permalink
Drupal 8: Refresh module cache after downloading new modules. Fixes d…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhattan committed Nov 19, 2015
1 parent 33444a2 commit 5e739de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/pm/pm.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,10 @@ function drush_pm_enable_validate() {
// Restore DRUSH_AFFIRMATIVE context.
drush_set_context('DRUSH_AFFIRMATIVE', $drush_affirmative);
// Refresh module cache after downloading the new modules.
if (drush_drupal_major_version() >= 8) {
\Drush\Drupal\ExtensionDiscovery::reset();
system_list_reset();
}
$extension_info = drush_get_extensions();
$recheck = TRUE;
}
Expand Down

0 comments on commit 5e739de

Please sign in to comment.