function drupal_flush_all_caches

cis7 common.inc drupal_flush_all_caches()
cle7 common.inc drupal_flush_all_caches()
elmsmedia7 common.inc drupal_flush_all_caches()
icor7 common.inc drupal_flush_all_caches()
meedjum_blog7 common.inc drupal_flush_all_caches()
mooc7 common.inc drupal_flush_all_caches()

Flushes all cached data on the site.

Empties cache tables, rebuilds the menu cache and theme registries, and invokes a hook so that other modules' cache data can be cleared as well.

12 calls to drupal_flush_all_caches()
devel_cache_clear in sites/all/modules/ulmus/devel/devel.pages.inc
Menu callback; clears all caches, then redirects to the previous page.
DrupalWebTestCase::resetAll in modules/simpletest/drupal_web_test_case.php
Reset all data structures after having enabled new modules.
features_cleanup_form in sites/all/modules/ulmus/features/features.admin.inc
Form for clearing cache after enabling a feature.
install_finished in includes/install.core.inc
Finishes importing files at end of installation.
joyride_enable in sites/all/modules/ulmus/joyride/joyride.module
Implements hook_enable(). Perform necessary actions after module is enabled.

... See full list

1 string reference to 'drupal_flush_all_caches'
admin_menu_flush_cache in sites/all/modules/ulmus/admin_menu/admin_menu.inc
Flush all caches or a specific one.

File

includes/common.inc, line 7453
Common functions that many Drupal modules will need to reference.

Code

function drupal_flush_all_caches() {
  // Change query-strings on css/js files to enforce reload for all users.
  _drupal_flush_css_js();

  registry_rebuild();
  drupal_clear_css_cache();
  drupal_clear_js_cache();

  // Rebuild the theme data. Note that the module data is rebuilt above, as
  // part of registry_rebuild().
  system_rebuild_theme_data();
  drupal_theme_rebuild();

  entity_info_cache_clear();
  node_types_rebuild();
  // node_menu() defines menu items based on node types so it needs to come
  // after node types are rebuilt.
  menu_rebuild();

  // Synchronize to catch any actions that were added or removed.
  actions_synchronize();

  // Don't clear cache_form - in-progress form submissions may break.
  // Ordered so clearing the page cache will always be the last action.
  $core = array(
    'cache',
    'cache_path',
    'cache_filter',
    'cache_bootstrap',
    'cache_page',
  );
  $cache_tables = array_merge(module_invoke_all('flush_caches'), $core);
  foreach ($cache_tables as $table) {
    cache_clear_all('*', $table, TRUE);
  }

  // Rebuild the bootstrap module list. We do this here so that developers
  // can get new hook_boot() implementations registered without having to
  // write a hook_update_N() function.
  _system_update_bootstrap_status();
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.