3

I just did a fresh Drush installation, and now I have version 8.1.15.

When I run drush rr, I get the following error message.

The drush command 'rr' could not be found. Run drush cache-clear drush to clear the commandfile cache if you have installed new extensions.

Even after running drush cache-clear, I still get that rr is not a known command.

Is this still available in Drush 8?

  • 1
    Use drush cr. – Kevin Jan 13 '18 at 18:35
  • I think CR is simply drush 8 version of "cc all", isn't it? – liquidcms Mar 28 '18 at 17:44
  • cc all doesn't exist in 8. cr is cache-rebuild and will do all of that including rebuild caches related to class discovery and annotations etc. – Kevin Mar 28 '18 at 18:08
  • 1
    Note liquidcms is asking for drush 8 not drupal 8 – FLY Apr 13 '18 at 7:33
  • Could you specify the Drupal version you are using? Drupal 7 and Drupal 8 require different drush commands. – Maarten De Block Dec 9 '18 at 11:07
1

Take a look at https://www.drupal.org/project/registry_rebuild

The documentation is there:

How To Use Registry Rebuild With Drush

This is the preferred technique, and it should work with multisite installs.

You can just drush @none dl registry_rebuild-7.x and drush will download it into your .drush folder. (Alternately, you can obtain the package another way and copy the folder into .drush yourself.)

Make a backup of your database.

Clear Drush own cache with drush cc drush

On a multisite install, either use correct drush alias, or cd into the site you're rebuilding, as in cd sites/mymultisite

Run drush rr or drush @sitename rr for soft rebuild (default), or: To force aggressive rebuild from scratch run drush @sitename rr --fire-bazooka

  • Question is regarding Drush 8. I think your answer only applies to Drush 7 and lower. – liquidcms Aug 10 '18 at 15:03
  • I'm using drush 8 with drupal 7 projects and the above is working. – FLY Aug 13 '18 at 13:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.