#198620 by yched: a tiny bit of optimization in menu_router_rebuild(); do not try to use the cache when resetting is asked
parent
9a971410df
commit
aaaf8f572d
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue