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

Related topics

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

File

./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();
}