function hook_flush_caches

7.x system.api.php hook_flush_caches()
6.x core.php 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.

Parameters

None.:

Return value

An array of cache table names.

See also

drupal_flush_all_caches()

system_clear_cache_submit()

Related topics

2 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-6.x/modules/block/block.module
Implementation of hook_flush_caches().
update_flush_caches in drupal-6.x/modules/update/update.module
Implementation of hook_flush_caches().
2 invocations of hook_flush_caches()
drupal_flush_all_caches in drupal-6.x/includes/common.inc
Flush all cached data on the site.
system_cron in drupal-6.x/modules/system/system.module
Implementation of hook_cron().

File

documentation-6.x/developer/hooks/core.php, line 2696
These are the hooks that are invoked by the Drupal core.

Code

function hook_flush_caches() {
  return array('cache_example');
}