You are here

function advagg_delete_empty_aggregates in Advanced CSS/JS Aggregation 7.2

Scan CSS/JS advagg dir and remove that file if it is empty.

Return value

array Array of files that got removed.

2 calls to advagg_delete_empty_aggregates()
advagg_cron in ./advagg.module
Implements hook_cron().
advagg_delete_empty_aggregates_button in ./advagg.admin.inc
Delete all empty advagg aggregated files.

File

./advagg.cache.inc, line 302
Advanced CSS/JS aggregation module.

Code

function advagg_delete_empty_aggregates() {
  list($css_files, $js_files) = advagg_get_all_files();
  $css_files = advagg_delete_files_if_empty($css_files);
  $js_files = advagg_delete_files_if_empty($js_files);
  return array(
    $css_files,
    $js_files,
  );
}