It will be good to include the hostname component of the url of the visited page in the key for the cache_menu
in function menu_get_menu()
. Currently the key consists of the uid and the locale. Including the hostname in the cache_menu key (together with uid and locale) will allow the use of different static menus in a multidomain installation (using the Domain Access module, for example) without any special arrangements. Right now, the only way to get that effect seems to be to put all domain-specific menu items in the dynamic menu part (!$may_cache
) which is inefficient for a heavy-duty site.
Comment | File | Size | Author |
---|---|---|---|
#3 | Screen Shot 2015-09-15 at 3.13.24 PM.png | 35.67 KB | jhedstrom |
Comments
Comment #1
marcingy CreditAttribution: marcingy commentedMoving to head
Comment #2
jhedstromTo 8.1.
Comment #3
jhedstromThis field appears to have been removed entirely for anonymous comments.
Comment #4
jhedstromThat last comment was for a completely different issue. Sorry.