You are here

boost.drush.inc in Boost 7

Same filename and directory in other branches
  1. 6 boost.drush.inc

Drush commands for Boost.

File

boost.drush.inc
View 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

Namesort descending Description
boost_drush_cache_clear Implements hook_drush_cache_clear().
boost_drush_cache_clear_all Clears all Boost cached data.