You are here

function boost_drush_cache_clear_all in Boost 6

Same name and namespace in other branches
  1. 7 boost.drush.inc \boost_drush_cache_clear_all()

Clears all Boost cached data.

1 string reference to 'boost_drush_cache_clear_all'
boost_drush_command in ./boost.drush.inc
Implementation of hook_drush_command().

File

./boost.drush.inc, line 44
Drush commands for Boost.

Code

function boost_drush_cache_clear_all() {
  module_load_include('inc', 'boost', 'boost.admin');
  $ignore = variable_get('boost_ignore_flush', 0);
  $GLOBALS['conf']['boost_ignore_flush'] = 0;
  if (boost_cache_clear_all()) {
    boost_clear_cache_parallel(BOOST_PERM_FILE_PATH);
    boost_clear_cache_parallel(BOOST_PERM_GZIP_FILE_PATH);
    print drush_log(dt('Boost: Static page cache cleared.'), 'ok');
  }
  else {
    print drush_log(dt('Boost: Static page cache not cleared.'), 'error');
  }
  $GLOBALS['conf']['boost_ignore_flush'] = $ignore;
}