backdrop-contrib / backdrop-drush-extension

A set of commands and boot class for Drush and Backdrop CMS.
GNU General Public License v2.0
13 stars 18 forks source link

cache-clear no longer compatible? #173

Open bradbulger opened 5 years ago

bradbulger commented 5 years ago

Getting this notice from drush cc all:

The function drush_cache_clear_both() (cache.inc:99) called deprecated function drupal_flush_all_caches(). It will be removed in the next major release of Backdrop.

serundeputy commented 5 years ago

Hello @bradbulger ; thanks for reporting.

I was unable to replicate; usually that means something with the way your backdrop drush extension is set up.

Here is my output:

gff ~/code/drush-ops/backdrop-drush/web (1.x) 
└─ $ ∴ lando.dev drush cc all
'all' cache was cleared.                                                                                                                                                                                                                             [success]
gff ~/code/drush-ops/backdrop-drush/web (1.x) 

Make sure you have the backdrop drush extension installed in one of they ways listed in the README: https://github.com/backdrop-contrib/drush/blob/1.x-0.x/README.md and that you are on the latest stable of backdrop-drush or are on 1.x-0.x of the extension.

bradbulger commented 5 years ago

I had just set up backdrop drush commands in my ~/.drush/commands directory from https://github.com/backdrop-contrib/drush/releases/latest. I have the Devel module enabled, with the "debug" and "deprecated" severity levels turned on.

The issue isn't the notice in itself, I suppose, but whether or not it is running that drupal_flush_all_caches() function, if it's going away in Backdrop.

serundeputy commented 5 years ago

hmmm ... maybe we'll need to implement a native drush cc all then. Currently we are passing off to drush proper.

gff ~/code/drush-ops/backdrop-drush/web (1.x) 
└─ $ ∴ lando.dev drush cc all
Error: Class 'Drupal\Core\Logger\RfcLogLevel' not found in drush_watchdog_severity_levels() (line 334 of /app/web/drush/commands/core/drupal/environment.inc).
Drush command terminated abnormally due to an unrecoverable error.                                                                                                                                                                                   [error]
gff ~/code/drush-ops/backdrop-drush/web (1.x) 
bradbulger commented 5 years ago

I think that's the issue, yes. I don't think "cannot reproduce" is an accurate label.

serundeputy commented 5 years ago

I don't think "cannot reproduce" is an accurate label.

jenlampton commented 5 years ago

I'm also seeing this

Fatal error: Uncaught Error: Class 'Drupal\Core\Logger\RfcLogLevel' not found in drush-8/commands/core/drupal/environment.inc:334

when trying to do a drush updb -y (not sure if it's relevant here...)

edit: For me this was caused by being on an old drush branch.