Hostname in cache_menu key

Created on 6 March 2008, about 17 years ago
Updated 28 May 2025, 2 days ago

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.

Feature request
Status

Postponed: needs info

Version

11.0 🔥

Component

menu system

Created by

🇮🇳India chaldar

Live updates comments and jobs are added and updated live.
  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States smustgrave

    Thank you for sharing your idea for improving Drupal.

    We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024