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

aiphes’s picture

ok i move the file boost.drush.inc to all/modules/boost and i get:

!!!@ssh:~$ drush boost-cache-clear-all
Boost: Static page cache not cleared. 
!!!@ssh:~$ drush boost-reset
Boost: Static page cache & database tables NOT cleared  

so it's better but doesn't work yet..

bgm’s picture

Status: Active » Postponed (maintainer needs more info)

If 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.

aiphes’s picture

Status: Postponed (maintainer needs more info) » Active

connection to db work with drush sqlc..so what i can do after ?

$ drush sqlc
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 90171330
Server version: 5.1.39-1 (Debian)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 
aiphes’s picture

still there...what can i do more ?

thanks

Offlein’s picture

Component: Documentation » Command line
Category: support » feature

It 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?!

chowdah’s picture

Issue summary: View changes

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.

kenorb’s picture

Version: 6.x-1.18 » 7.x-1.x-dev
nmalinoski’s picture

In 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 by boost_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