hook_flush_caches

Versions
6 – 7
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.

See also

drupal_flush_all_caches()

@see system_clear_cache_submit()

Parameters

None.

Return value

An array of cache table names.

Related topics

Code

docs-6/hooks/core.php, line 2356

<?php
function hook_flush_caches() {
  return array('cache_example');
}
?>

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options