You are here

function boost_drush_cache_clear_expired in Boost 6

Clears Boost expired data.

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

File

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

Code

function boost_drush_cache_clear_expired() {
  $ignore = variable_get('boost_ignore_flush', 0);
  $GLOBALS['conf']['boost_ignore_flush'] = 0;
  if (boost_cache_expire_all()) {
    print drush_log(dt('Boost: Expired stale files from static page cache.'), 'ok');
  }
  else {
    print drush_log(dt('Boost: Expired stale files from static page cache NOT cleared'), 'error');
  }
  $GLOBALS['conf']['boost_ignore_flush'] = $ignore;
}