1.20.x menu.inc | menu_cache_clear($menu_name = 'main-menu') |
Clears the cached data for a single named menu.
Related topics
File
- includes/
menu.inc, line 2853 - 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();
}