Clearing Boost cache with drush
Pergunta
I am testing the boost module out, it is a great performance enhancement for the site I am working on.
However I would like to be able to get boost to clear it's cache using drush. Drush cc all
doesn't seem to do this. And looking in the boost module code, there doesn't seem to be a cron command for it. Am I missing something or is this currently not implemented?
Solução
Answering my own question. I was missing something.
Boost is a bit more fussy about the URL than the rest of drush when clearing the cache
drush --uri=http://my.site.name cc all
will work.
Outras dicas
If you just want to clear Boost's cache and not any other caches:
drush --uri=http://example.com boost-cache-clear-all
See also the notes at the Drush integration patch for Boost.
If you have drush aliases configured, just do this: drush @name_of_alias cc all
I'm using Drush 8 and Drupal 7, but this also worked on my earlier versions.