boost.drush.inc in Boost 7
Same filename and directory in other branches
Drush commands for Boost.
File
boost.drush.incView source
<?php
/**
* @file
* Drush commands for Boost.
*/
/**
* Implements hook_drush_cache_clear().
*/
function boost_drush_cache_clear(&$types) {
$types['boost'] = 'boost_drush_cache_clear_all';
}
/**
* Clears all Boost cached data.
*/
function boost_drush_cache_clear_all() {
$ignore = variable_get('boost_ignore_flush', 0);
$GLOBALS['conf']['boost_ignore_flush'] = 0;
boost_flush_caches();
$GLOBALS['conf']['boost_ignore_flush'] = $ignore;
}
Functions
Name | Description |
---|---|
boost_drush_cache_clear | Implements hook_drush_cache_clear(). |
boost_drush_cache_clear_all | Clears all Boost cached data. |