Closed (won't fix)
Project:
Drush
Version:
8.x-6.x-dev
Component:
Base system (internal API)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 May 2012 at 19:15 UTC
Updated:
30 Jan 2016 at 15:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tim.plunkettComment #2
tim.plunkettComment #3
jonhattanLooking at
cache()implementation I seeShould we call
cache('update')instead ofcache('cache_update')in this patch?Comment #4
tim.plunkettYep.
Comment #5
jonhattanOn a second look at drush, we need to replace calls to cache_clear_all() in more places.
Two options are: define cache_clear_all again for drupal 8 in commands/core/drupal/environment.inc or use a wrapper function for all versions. For example drupal_cache_clear_all() although there exist several X_cache_clear_all already in drush... doc on them should be improved also.
Comment #6
tim.plunkettI'm not really confident with doing #5 myself, but this is an update to #4 since core has changed some.
Comment #7
hansfn commentedOK, I also stumbled upon this problem when running "drush updatedb" in a D8 installation.
1) Shouldn't this have higher priority? Breaking the updatedb is rather critical ...
2) Looking at the patch, I'm wondering if it breaks on D7? Shouldn't the same version of Drush work on both D8 and D7?
3) Regarding the options in comment #5. I think "define cache_clear_all again for drupal 8 in commands/core/drupal/environment.inc" is the least messy, but I don't know the Drush code that well.
PS! I was forced to set a version - I hope I selected the right one.
Comment #8
tim.plunkett1) D8 doesn't have an upgrade path, so you shouldn't be using updb anyway, until the alphas (or betas?) come out
2) Drush has versioned files. update.inc, update_6.inc, and update_7.inc
3) Yes, that's why this is "needs work"
The version number is correct, drush changed them around since I last commented.
Comment #9
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to
closed (duplicate).Please ask support questions on Drupal Answers.
Comment #9.0
greg.1.anderson commentedClarified version
Comment #10
digitaldonkey commentedInfo: You can use drupal_flush_all_caches(); in D8.