Same name in other branches
- 5.0.x advagg.drush.inc \drush_advagg_cron()
- 6.0.x advagg.drush.inc \drush_advagg_cron()
- 7.x-2.x advagg.drush.inc \drush_advagg_cron()
- 8.x-3.x advagg.drush.inc \drush_advagg_cron()
- 8.x-4.x advagg.drush.inc \drush_advagg_cron()
Callback function for drush advagg-cron.
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.
Fichier
-
./
advagg.drush.inc, line 129
Code
function drush_advagg_cron() {
// Run AdvAgg cron job.
$output = advagg_cron(TRUE);
// Output results from running AssetCollectionOptimizer::deleteStale().
list($css_files, $js_files) = $output['stale'];
if (!empty($css_files) || !empty($js_files)) {
drush_log(dt('All stale aggregates have been deleted. %css_count CSS files and %js_count JS files have been removed.', [
'%css_count' => count($css_files),
'%js_count' => count($js_files),
]), 'ok');
}
else {
drush_log(dt('No stale aggregates found. Nothing was deleted.'), 'ok');
}
}