Same name in other branches
  1. 7.x-2.x advagg.drush.inc \drush_advagg_smart_cache_flush()

Flush the correct caches so CSS/JS changes go live.

1 string reference to 'drush_advagg_smart_cache_flush'
advagg_drush_cache_clear in ./advagg.drush.inc
Implements hook_drush_cache_clear().

File

./advagg.drush.inc, line 149

Code

function drush_advagg_smart_cache_flush() {
    // Run the commands.
    \Drupal::service('asset.js.collection_optimizer')->deleteAll();
    \Drupal::service('asset.css.collection_optimizer')->deleteAll();
    _drupal_flush_css_js();
    drush_log('Advagg Aggregates Cache Cleared', 'ok');
}