Delete aggregates that have not been accessed in the last 6 weeks.

Sujets associés

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

Fichier

./advagg.admin.inc, line 1803

Code

function advagg_admin_remove_old_unused_aggregates_button() {
    module_load_include('inc', 'advagg', 'advagg.cache');
    // Remove unused aggregates.
    $count = advagg_remove_old_unused_aggregates();
    if (empty($count)) {
        drupal_set_message(t('No old and unused aggregates found. Nothing was deleted.'));
    }
    else {
        drupal_set_message(t('Some old and unused aggregates were found. A total of %count database entries were removed.', array(
            '%count' => $count,
        )));
    }
}