1.12.x system.api.php hook_flush_caches()
1.10.x system.api.php hook_flush_caches()
1.11.x system.api.php hook_flush_caches()
1.7.x system.api.php hook_flush_caches()

Add a list of cache tables to be cleared.

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 backdrop_flush_all_caches is invoked.

Return value

An array of cache bins.

See also

backdrop_flush_all_caches()

Related topics

File

modules/system/system.api.php, line 1950
Hooks provided by Backdrop core and the System module.

Code

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