function hook_flush_caches


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 system.api.php hook_flush_caches()
cle7 system.api.php hook_flush_caches()
elmsmedia7 system.api.php hook_flush_caches()
icor7 system.api.php hook_flush_caches()
meedjum_blog7 system.api.php hook_flush_caches()
mooc7 system.api.php 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

23 functions implement hook_flush_caches()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

admin_menu_flush_caches in sites/all/modules/ulmus/admin_menu/admin_menu.module
Implements hook_flush_caches().
advagg_flush_caches in sites/all/modules/ulmus/advagg/advagg.module
Implements hook_flush_caches().
block_flush_caches in modules/block/block.module
Implements hook_flush_caches().
boost_flush_caches in sites/all/modules/ulmus/boost/boost.module
Implements hook_flush_caches(). Deletes all static files.
cis_connector_flush_caches in sites/all/modules/elmsln_contrib/cis_connector/cis_connector.module
Implements hook_flush_caches().

... See full list

3 invocations of hook_flush_caches()
drupal_flush_all_caches in includes/
Flushes all cached data on the site.
system_cron in modules/system/system.module
Implements hook_cron().
_admin_menu_flush_cache in sites/all/modules/ulmus/admin_menu/
Flush all caches or a specific one.


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


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



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.