function menu_cache_clear

×

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/api.elmsln.org/includes/bootstrap.inc).
cis7 menu.inc menu_cache_clear($menu_name = 'navigation')
cle7 menu.inc menu_cache_clear($menu_name = 'navigation')
elmsmedia7 menu.inc menu_cache_clear($menu_name = 'navigation')
icor7 menu.inc menu_cache_clear($menu_name = 'navigation')
meedjum_blog7 menu.inc menu_cache_clear($menu_name = 'navigation')
mooc7 menu.inc menu_cache_clear($menu_name = 'navigation')

Clears the cached cached data for a single named menu.

Related topics

3 calls to menu_cache_clear()
admin_menu_update_6001 in sites/all/modules/ulmus/admin_menu/admin_menu.install
Wipe and rebuild so we can switch the icon path to <front>.
menu_link_save in includes/menu.inc
Saves a menu link.
_menu_delete_item in includes/menu.inc
Deletes a single menu link.

File

includes/menu.inc, line 2656
API for the Drupal menu system.

Code

function menu_cache_clear($menu_name = 'navigation') {
  $cache_cleared = &drupal_static(__FUNCTION__, array());

  if (empty($cache_cleared[$menu_name])) {
    cache_clear_all('links:' . $menu_name . ':', 'cache_menu', TRUE);
    $cache_cleared[$menu_name] = 1;
  }
  elseif ($cache_cleared[$menu_name] == 1) {
    drupal_register_shutdown_function('cache_clear_all', 'links:' . $menu_name . ':', 'cache_menu', TRUE);
    $cache_cleared[$menu_name] = 2;
  }

  // Also clear the menu system static caches.
  menu_reset_static_cache();
}
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.