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 dans ./advagg.module
Implements hook_cron().
advagg_delete_empty_aggregates_button dans ./advagg.admin.inc
Delete all empty advagg aggregated files.

Fichier

./advagg.cache.inc, line 302

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,
    );
}