Skip navigation
Help

hook_flush_caches

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

Return value

An array of cache table names.

See also

drupal_flush_all_caches()

Related topics

6 functions implement hook_flush_caches()

2 invocations of hook_flush_caches()

File

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

Code

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