- πΊπΈUnited States douggreen Winchester, VA
I'm closing this as playing with access checks is dangerous.
Menu access checks are expensive. Let's see if we can bypass in some situations This is a pervasive problem through Drupal, in core, and in many contrib modules. This offers a new pattern to test on one contrib module first, and to get feedback, before proposing to the wider community.
If the menu being displayed is large, and should always have items that are accessible to anonymous users, we can do the access check at build time instead of at runtime. This has security concerns. So the proposal is not to completely bypass the access checks, but do them at build time.
If the menu is changed after this is set, anonymous users could end up with links in their menus that they don't actually have access to. Is there any harm with this? When they click on the link they'll get an access denied.
All of our sites have very big menus (3 levels deep; over 300 menu items on average).This change cuts the entire page time by 1/3 to 1/2.
We should also add the runtime access check to hook_requirements.
A new option is available.
Closed: won't fix
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I'm closing this as playing with access checks is dangerous.