Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There are a dozen places cache_clear_all is called with arguments from drush. Encountered this while running drush updb in D8.
Comment | File | Size | Author |
---|---|---|---|
#6 | drush-1605018-6.patch | 894 bytes | tim.plunkett |
#4 | drush-1605018-4.patch | 890 bytes | tim.plunkett |
#1 | drush-1605018-1.patch | 896 bytes | tim.plunkett |
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: greg.1.anderson commentedClarified version
Comment #10
digitaldonkey CreditAttribution: digitaldonkey as a volunteer and commentedInfo: You can use drupal_flush_all_caches(); in D8.