Drupal-7: Drush rebuild registry

Drupal maintains information about modules in a "registry". If you move a module in the directory tree, it will no longer be found properly.

After moving a module, use the Drush command registry-rebuild (rr) to tell Drupal to rebuild the registry and clear its caches. rr is a sort of super-charged cache-clearing command.

If Drush comes back with an error telling you The drush command 'rr' could not be found, then you need to install the command. Do so by typing

drush @none dl registry_rebuild-7.x
drush cc drush

before reattempting the command.

Reference: https://drupal.stackexchange.com/questions/253698/is-there-a-registry-rebuild-command

2 / 2023