1 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

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

Code

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