Skip to content
Snippets Groups Projects
Commit 6ba8f32c authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 961cf7af
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment