Closed (duplicate)
Project:
Drush
Version:
8.x-6.x-dev
Component:
PM (dl, en, up ...)
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
7 May 2013 at 16:00 UTC
Updated:
18 Aug 2013 at 13:07 UTC
Jump to comment: Most recent file
Comments
Comment #1
iamEAP commentedBetting this is because, in Drupal 7, system_rebuild_module_cache() implements a drupal static cache so that it's only run once per request.
Comment #2
iamEAP commentedActually, I cannot reproduce this in Drupal 7; can only reproduce in Drupal 8.
Comment #3
iamEAP commentedHow about something like this?
Adding a $force_rebuild parameter to drush_get_extensions() and all corresponding drush_get_[modules|themes] implementations / passing it through.
Note that Drupal 6 doesn't statically cache its module/theme get/rebuild functions, so the flag is actually meaningless there.
Comment #4
jonhattanIt is reproducible in D8 but the underlying problem is that drush relies on the behaviour of system_rebuild_module_data() and system_rebuild_theme_data() in D7, that clear each other's collected data. So this data is rebuild twice.
I'm in a travel, and probably won't work on this and other issues until next week.
Comment #5
moshe weitzman commentedWould be good to clear this up before Drush6 release.
Comment #6
moshe weitzman commentedhttps://github.com/drush-ops/drush/issues/5