hook_flush_caches
function hook_flush_caches
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
Related topics
File
- modules/system/system.api.php, line 2636
- Hooks provided by Drupal core and the System module.
Code
function hook_flush_caches() { return array('cache_example'); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_flush_caches/7.x