2

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?

3

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.

3

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.

  • Thanks for this, looks like this is only in the dev release of boost for the moment, but still good to know. – Jeremy French Mar 15 '11 at 9:32
  • 1
    Ah, I had assumed that since my patch got committed to the dev branch, that it had made its way into an official release. That only works if there's an official release after the commit. You could probably use the Drush include file, renaming it to remove the underscore, from the "patch" but still use the official release of Boost, since there are no changes to Boost necessary for the Drush functionality to work. – sillygwailo Mar 19 '11 at 21:08
0

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.

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.