Clear out all advagg cache bins.
Sujets associés
4 calls to advagg_admin_clear_all_caches_button()
- advagg_admin_increment_global_counter dans ./
advagg.admin.inc - Clear out all advagg cache bins and increment the counter.
- advagg_admin_remove_empty_advagg_files dans ./
advagg.admin.inc - Remove filesize zero files from the advagg_files table and clear caches.
- advagg_admin_reset_mtime dans ./
advagg.admin.inc - Clear out all advagg cache bins and increment the counter.
- advagg_admin_truncate_advagg_files dans ./
advagg.admin.inc - Truncate the advagg_files table and clear caches.
1 string reference to 'advagg_admin_clear_all_caches_button'
- advagg_admin_operations_form dans ./
advagg.admin.inc - Form builder; Do advagg operations.
Fichier
-
./
advagg.admin.inc, line 1629
Code
function advagg_admin_clear_all_caches_button() {
// Clear the libraries cache.
if (function_exists('libraries_flush_caches')) {
$cache_tables = libraries_flush_caches();
foreach ($cache_tables as $table) {
cache_clear_all('*', $table, TRUE);
}
}
// Run the command.
module_load_include('inc', 'advagg', 'advagg.cache');
advagg_flush_all_cache_bins();
// Report back the results.
drupal_set_message(t('All AdvAgg cache bins have been cleared.'));
// Clear it again at the end of the request to be sure.
drupal_register_shutdown_function('advagg_flush_all_cache_bins', FALSE);
drupal_register_shutdown_function('advagg_push_new_changes');
}