diff --git a/includes/common.inc b/includes/common.inc index bb4d8e7321bd00971c52a91cacd039f25ce8313e..72fcf76a8046a891f7874db900efc6a8ed2516fe 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -7146,10 +7146,10 @@ function drupal_flush_all_caches() { // Don't clear cache_form - in-progress form submissions may break. // Ordered so clearing the page cache will always be the last action. - $core = array('cache', 'cache_path', 'cache_filter', 'cache_bootstrap', 'cache_page'); - $cache_tables = array_merge(module_invoke_all('flush_caches'), $core); - foreach ($cache_tables as $table) { - cache($table)->flush(); + $core = array('cache', 'path', 'filter', 'bootstrap', 'page'); + $cache_bins = array_merge(module_invoke_all('flush_caches'), $core); + foreach ($cache_bins as $bin) { + cache($bin)->flush(); } // Rebuild the bootstrap module list. We do this here so that developers diff --git a/modules/block/block.module b/modules/block/block.module index 7f9379f30a39a413ceb3e28357adc1832cf52c2c..86e1ca734b78c591349e835d9c5928e26a70a36b 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -912,7 +912,7 @@ function block_flush_caches() { _block_rehash($theme->name); } - return array('cache_block'); + return array('block'); } /** diff --git a/modules/field/field.module b/modules/field/field.module index 9683c02b691c6c68a4afa0e346d50fcfde1b12d3..8969547715dda9026dc2729611b1e06dc5a74694 100644 --- a/modules/field/field.module +++ b/modules/field/field.module @@ -421,7 +421,7 @@ function field_system_info_alter(&$info, $file, $type) { */ function field_flush_caches() { field_sync_field_status(); - return array('cache_field'); + return array('field'); } /** diff --git a/modules/image/image.module b/modules/image/image.module index 1f420737403839ac9b3ff9902e6d4bc40ef70c1e..af683d6ba80f42e1e30f5038dea116364f9c04ab 100644 --- a/modules/image/image.module +++ b/modules/image/image.module @@ -262,7 +262,7 @@ function image_system_file_system_settings_submit($form, &$form_state) { * Implements hook_flush_caches(). */ function image_flush_caches() { - return array('cache_image'); + return array('image'); } /** diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 52350f9b93395cd7b2517c250846dfe965f687fc..ec7f6b8ba892dc1edae941f356b5c90537919b6e 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -2377,17 +2377,17 @@ function hook_mail($key, &$message, $params) { /** * Add a list of cache tables to be cleared. * - * This hook allows your module to add cache table names to the list of cache - * tables that will be cleared by the Clear button on the Performance page or + * This hook allows your module to add cache bins to the list of cache bins + * that will be cleared by the Clear button on the Performance page or * whenever drupal_flush_all_caches is invoked. * * @return - * An array of cache table names. + * An array of cache bins. * * @see drupal_flush_all_caches() */ function hook_flush_caches() { - return array('cache_example'); + return array('example'); } /** diff --git a/modules/system/system.module b/modules/system/system.module index cfab0a98288c0456ce6debddd9908efbac02f370..16ed0b50cecb45f324ba3a07d18d7faf28163d5a 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -3004,10 +3004,10 @@ function system_cron() { } } - $core = array('cache', 'cache_path', 'cache_filter', 'cache_page', 'cache_form', 'cache_menu'); - $cache_tables = array_merge(module_invoke_all('flush_caches'), $core); - foreach ($cache_tables as $table) { - cache($table)->expire(); + $core = array('cache', 'path', 'filter', 'page', 'form', 'menu'); + $cache_bins = array_merge(module_invoke_all('flush_caches'), $core); + foreach ($cache_bins as $bin) { + cache($bin)->expire(); } // Cleanup the batch table and the queue for failed batches.