Commit aaaf8f57 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#198620 by yched: a tiny bit of optimization in menu_router_rebuild(); do not...

#198620 by yched: a tiny bit of optimization in menu_router_rebuild(); do not try to use the cache when resetting is asked
parent 9a971410
......@@ -1519,8 +1519,7 @@ function menu_router_build($reset = FALSE) {
static $menu;
if (!isset($menu) || $reset) {
$cache = cache_get('router:', 'cache_menu');
if (!$reset && $cache && isset($cache->data)) {
if (!$reset && ($cache = cache_get('router:', 'cache_menu')) && isset($cache->data)) {
$menu = $cache->data;
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment