You are here

function drush_advagg_clear_db_cache in Advanced CSS/JS Aggregation 8.2

Same name and namespace in other branches
  1. 7.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.

1 call to drush_advagg_clear_db_cache()
drush_advagg_force_new_aggregates in ./advagg.drush.inc
Callback function for drush advagg-force-new-aggregates.

File

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

Code

function drush_advagg_clear_db_cache() {
  \Drupal::service('cache.advagg.minify')
    ->deleteAll();

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