You are here

function drush_advagg_force_new_aggregates in Advanced CSS/JS Aggregation 7.2

Same name and namespace in other branches
  1. 8.4 advagg.drush.inc \drush_advagg_force_new_aggregates()
  2. 8.2 advagg.drush.inc \drush_advagg_force_new_aggregates()
  3. 8.3 advagg.drush.inc \drush_advagg_force_new_aggregates()

Callback function for drush advagg-force-new-aggregates.

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.

File

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

Code

function drush_advagg_force_new_aggregates() {

  // Clear out the cache.
  drush_advagg_clear_db_cache();

  // Increment counter.
  module_load_include('inc', 'advagg', 'advagg.cache');
  $new_value = advagg_increment_global_counter();
  drush_log(dt('Global counter is now set to @new_value', array(
    '@new_value' => $new_value,
  )), 'ok');
}