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

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

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

Fichier

./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');
}