Commit 6ba8f32c authored by Dries's avatar Dries
Browse files

- Patch #13503 by chx: made the menu cache locale aware.

parent 961cf7af
......@@ -198,12 +198,13 @@
function menu_get_menu() {
global $_menu;
global $user;
global $locale;
if (!isset($_menu['items'])) {
// _menu_build() may indirectly call this function, so prevent infinite loops.
$_menu['items'] = array();
$cid = 'menu:'. $user->uid;
$cid = "menu:$user->uid:$locale";
if ($cached = cache_get($cid)) {
$_menu = unserialize($cached->data);
}
......
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