#198620 by yched: a tiny bit of optimization in menu_router_rebuild(); do not try to use the cache when resetting is asked

6.x
Gábor Hojtsy 2007-12-07 18:24:55 +00:00
parent 9a971410df
commit aaaf8f572d
1 changed files with 1 additions and 2 deletions

View File

@ -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 {