I manage a lot of Drupal sites and drush is a lifesaver. I usually script what I need done and then loop over all of the sites.
Many times I need to execute several Drush commands on the same site. Because Drush has to go through the bootstrap process for each command it can be a bit slow. So if I do three commands, Drupal gets bootstrapped three times. Example:
- drush cc all
- drush dl freds_module
- drush en --yes freds_module
So is there any way to run multiple commands with one bootstrap? Something like:
drush "cc all" "dl freds_module" "en --yes freds_module"
The idea is to bootstrap drush only once rather than three times. If it is not possible, I'll still be happy with Drush.
Thanks.
drush en --yes freds_module
is enough: it will download the module if not present and also clear caches after enabling.