Closed (fixed)
Project:
Drush
Component:
Base system (internal API)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2010 at 18:26 UTC
Updated:
20 Sep 2012 at 18:27 UTC
Jump to comment: Most recent file
A lot of the time I know what the update status of the modules on my site is, and would prefer drush just use the last known status information. Additionally, a lot of the time I keep update.module disabled, and only enable it on testbeds or when I want to check module versions (because it's such a performance hit on admin pages).
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | drush_872920.patch | 417 bytes | xjm |
Comments
Comment #1
xjmAlso, this would be a little more convenient with the current patch in #446736: Have drush update be told to ignore a module/theme -- simple solution.
Comment #2
moshe weitzman commentedBy design, we re-use functions that are in update module. There are no plans to make our updater fully independant of the one in core drupal. If that one is slow, please help fix it in core. I think that core has its own logic for refreshing update_status info. Not sure how easy it is for us to work around it.
Folks are very welcome to work on this, but its not one of my personal priorities.
Comment #3
xjmI see. I think it's probably inevitable that checking for version status information for every project on a site is going to take time; it's just that typically I actually know whether the info is fresh or not and so I don't need update.module/drush to check for me. I'll look into a patch that would at least allow manually using the last known status information rather than checking every time.
Comment #4
patrick2000 commentedI realized that drush is ALLWAYS /refreshing/ the update status information and is /not using the cache/d information which causes quiet a bit of a lag, because it contacts drupal.org each time, i guess, instead of using the information cached the database.
I think I found the reason:
check the following drupal core issue comment once: http://drupal.org/node/220592#comment-1534334
Renamed the ambiguous and lame cache id that stores the data we fetch over the network from 'update_info' to 'update_available_releases' for better self-documenting clarity.
this is not yet reflected in drush's 6.x engine.
check commands/pm/update_info/drupal_6.inc
...
if (!cache_get('update_info', 'cache_update')) {
...
-> it still checks the old cid 'update_info' instead of the new 'update_available_releases'.
i changed the code in question on my local installation and it works - i.e. no more "Refreshing update status information ..." message and the "drush upc" command is now much faster.
greetings
patrick
Comment #5
xjmConfirmed that this fixes the issue. Patch attached.
Comment #6
moshe weitzman commentedadded same change to d7 and committed.
Comment #8
donquixote commentedHi,
could someone update the issue summary to explain the solution added in #5 / #6 ?
What do I need to do to skip the refresh?