function drush_advagg_smart_cache_flush in Advanced CSS/JS Aggregation 8.2
Same name and namespace in other branches
- 7.2 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 - Drush commands for Advanced CSS/JS Aggregation.
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');
}