Scan CSS/JS advagg dir and remove file if there is no associated db record.

Return value

array Array of files that got removed.

2 calls to advagg_delete_orphaned_aggregates()
advagg_admin_delete_orphaned_aggregates_button dans ./advagg.admin.inc
Scan CSS/JS advagg dir and remove file if there is no associated db record.
advagg_cron dans ./advagg.module
Implements hook_cron().

Fichier

./advagg.cache.inc, line 534

Code

function advagg_delete_orphaned_aggregates() {
    list($css_files, $js_files) = advagg_get_all_files();
    // Make the advagg_get_hashes_from_filename() function available.
    module_load_include('inc', 'advagg', 'advagg.missing');
    $css_files = advagg_delete_files_if_orphaned($css_files);
    $js_files = advagg_delete_files_if_orphaned($js_files);
    return array(
        $css_files,
        $js_files,
    );
}