1 menu.inc menu_cache_clear($menu_name = 'main-menu')

Clears the cached data for a single named menu.

Related topics

File

core/includes/menu.inc, line 2858
API for the Backdrop menu system.

Code

function menu_cache_clear($menu_name = 'main-menu') {
  cache('menu')->deletePrefix('links:' . $menu_name . ':');
  // Also clear the menu system static caches.
  menu_reset_static_cache();
}