hook_flush_caches

Definition

hook_flush_caches()
drupal/modules/system/system.api.php, line 1457

Description

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.

@see drupal_flush_all_caches()

Return value

An array of cache table names.

Related topics

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

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