Remove filesize zero files from the advagg_files table and clear caches.

Sujets associés

1 string reference to 'advagg_admin_remove_empty_advagg_files'
advagg_admin_operations_form dans ./advagg.admin.inc
Form builder; Do advagg operations.

Fichier

./advagg.admin.inc, line 1739

Code

function advagg_admin_remove_empty_advagg_files() {
    // Remove dead files from the advagg_files table.
    db_delete('advagg_files')->condition('filesize', 0)
        ->execute();
    variable_del('javascript_parsed');
    drupal_set_message(t('All empty files in the advagg_files table have been removed.'));
    // Clear out the cache.
    advagg_admin_clear_all_caches_button();
}