diff -u b/includes/menu.inc b/includes/menu.inc --- b/includes/menu.inc +++ b/includes/menu.inc @@ -462,9 +462,12 @@ } $original_map = arg(NULL, $path); - // Since there is no limit to the length of $path, use a hash to keep it - // short yet unique. - $cid = variable_get('use_menu_router_cache_for_lru_backend', FALSE) ? 'menu_item:' . hash('sha256', $path) : FALSE; + $cid = FALSE; + if (variable_get('use_menu_router_cache_for_lru_backend', FALSE)) { + // Since there is no limit to the length of $path, use a hash to keep it + // short yet unique. + $cid = 'menu_item:' . hash('sha256', $path); + } if ($cid && $cached = cache_get($cid, 'cache_menu')) { $router_item = $cached->data; }