Same name and namespace in other branches
  1. 5.0.x advagg.drush.inc \advagg_drush_help() 1 comment
  2. 6.0.x advagg.drush.inc \advagg_drush_help() 1 comment
  3. 8.x-2.x advagg.drush.inc \advagg_drush_help() 1 comment
  4. 8.x-3.x advagg.drush.inc \advagg_drush_help() 1 comment
  5. 8.x-4.x advagg.drush.inc \advagg_drush_help() 1 comment

Implements hook_drush_help().

Related topics

File

./advagg.drush.inc, line 24

Code

function advagg_drush_help($command) {
    switch ($command) {
        case 'drush:advagg-cron':
            return dt('Run the advagg cron hook. This will clear out all stale advagg aggregated files, remove aggregates that include missing files, and remove unused aggregates.');
        case 'drush:advagg-clear-db-cache':
            return dt('Remove all entries from the advagg cache bins. Useful if you suspect a cache is not getting cleared.');
        case 'drush:advagg-clear-all-files':
            return dt('Remove all generated files. Useful if you think some of the generated files got corrupted and thus need to be deleted.');
        case 'drush:advagg-force-new-aggregates':
            return dt('Force the creation of all new aggregates by incrementing a global counter. Current value of counter: @value. This is useful if a CDN has cached an aggregate incorrectly as it will force new ones to be used even if nothing else has changed.', array(
                '@value' => advagg_get_global_counter(),
            ));
    }
}