Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
hi
i would to clear boost cache via drush and i download files here : http://drupal.org/node/517962
upload the boost.drush.inc to /drush/includes , but it not work :
!!!@ssh:~$ drush boost-cache-clear-all
The drush command 'boost-cache-clear-all' could not be found.
i didn't apply the patch yet..think it can work with the first version
what do i miss ?
thanks
Comments
Comment #1
aiphesok i move the file boost.drush.inc to all/modules/boost and i get:
so it's better but doesn't work yet..
Comment #2
bgm CreditAttribution: bgm commentedIf you type:
drush sqlc
, does it connect to your database?If not, try one of the following:
* go to the directory where your settings.php is located,
* pass the --uri argument, or
* configure a Drush alias for your site.
Comment #3
aiphesconnection to db work with drush sqlc..so what i can do after ?
Comment #4
aiphesstill there...what can i do more ?
thanks
Comment #5
Offlein CreditAttribution: Offlein commentedIt looks to me like the Drush script is no longer included in the module for some reason, and the old version linked to above is not functional for the current version of Boost (at least in 7)..
Where did Drush integration go?!
Comment #6
chowdah CreditAttribution: chowdah commentedIf 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.
Comment #7
kenorb CreditAttribution: kenorb commentedComment #8
nmalinoski CreditAttribution: nmalinoski commentedIn Boost 7.x-1.1, drush gets a 'boost' item for the cc command, so you can run
drush cc boost
, and it will say that the boost cache was cleared, but it doesn't seem to do anything to the disk cache.The problem seems to be with Boost's reliance on the host/domain name to find the cache path.
boost_flush_caches()
appears to verify and use$_boost['base_dir']
. This variable gets set byboost_transform_url()
(Relevant line 469).In assembling this path,
$parts['host']
is used--and this is where the problem lies--which is the domain name under normal use via a web browser, but has the value 'default' when using drush. Since /cache/normal/default does not exist, the check in_boost_rmdir()
fails, and the disk cache is never purged.The workaround is to feed the website's URL to drush with:
drush -l http://www.example.com cc boost