You are here

function drush_advagg_clear_db_cache in Advanced CSS/JS Aggregation 7.2

Same name and namespace in other branches
  1. 8.2 advagg.drush.inc \drush_advagg_clear_db_cache()

Callback function for drush advagg-clear-db-cache.

Callback is called by using drush_hook_command() where hook is the name of the module (advagg) and command is the name of the Drush command with all "-" characters converted to "_" characters.

2 calls to drush_advagg_clear_db_cache()
drush_advagg_clear_all_files in ./advagg.drush.inc
Callback function for drush advagg-clear-all-files.
drush_advagg_force_new_aggregates in ./advagg.drush.inc
Callback function for drush advagg-force-new-aggregates.

File

./advagg.drush.inc, line 126
Drush commands for Advanced CSS/JS Aggregation.

Code

function drush_advagg_clear_db_cache() {

  // Run the command.
  module_load_include('inc', 'advagg', 'advagg.cache');
  advagg_flush_all_cache_bins();

  // Report back the results.
  drush_log(dt('All AdvAgg cache bins have been cleared.'), 'ok');
}