function hook_flush_caches

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 whenever drupal_flush_all_caches is invoked.

Return value

An array of cache table names.

See also


Related topics

7 functions implement hook_flush_caches()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

block_flush_caches in drupal/modules/block/block.module
Implements hook_flush_caches().
field_flush_caches in drupal/modules/field/field.module
Implements hook_flush_caches().
image_flush_caches in drupal/modules/image/image.module
Implements hook_flush_caches().
system_cron_test_flush_caches in drupal/modules/system/tests/system_cron_test.module
Implements hook_flush_caches().
system_flush_caches in drupal/modules/system/system.module
Implements hook_flush_caches().

... See full list

4 invocations of hook_flush_caches()
CacheClearCase::testFlushAllCaches in drupal/modules/simpletest/tests/cache.test
Test drupal_flush_all_caches().
CacheClearCase::testIsValidBin in drupal/modules/simpletest/tests/cache.test
Test DrupalDatabaseCache::isValidBin().
drupal_flush_all_caches in drupal/includes/
Flushes all cached data on the site.
system_cron in drupal/modules/system/system.module
Implements hook_cron().


drupal/modules/system/system.api.php, line 2652
Hooks provided by Drupal core and the System module.


function hook_flush_caches() {
  return array(