Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
system.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2009 at 19:15 UTC
Updated:
16 Feb 2010 at 15:18 UTC
Jump to comment: Most recent file
Comments
Comment #1
jrchamp commentedsubscribing
Comment #2
catchSo there has to be around this, but in the meantime I found some bugs in system_admin_menu_block() which were causing duplicate rendering and queries: #521798: system_admin_menu_block() static caching is broken .
Comment #3
catchThis is taking up approximately 30% of page execution time at the moment.
Comment #4
catchComment #5
sunadmin_menu, with client-side caching being disabled, suffers from this, too.
Comment #6
catchWe should just roll this back. You might get a link which doesn't go anywhere, but you'll get there 35% faster.
Comment #8
catchThis is now a straight rollback of #296693: Restrict access to empty top level administration pages I may re-open that one at least temporarily since while the original bug is annoying, the fix is worse.
Comment #9
sunuhm, no. Re-introducing MENU_DYNAMIC_ITEM would be an option, but reverting the code that ensures that admin categories are hidden if there are not any items below them does not do any good.
Comment #10
damien tournoud commented... and I believe I know the guy that introduced that.
On it.
Comment #11
moshe weitzman commentedpossibly related #519046: Clean up toolbar menu code
Comment #12
catchwebgrind screenshot, looks like Moshe's issue found some paths that rightly shouldn't be affected by this, but fixing this one would narrow that down a lot.
Comment #13
damien tournoud commentedI'm not giving up hope of finding time to work on this, but I leave the floor open.
Comment #14
catchI've not been able to think of a good solution to this, but posted a patch over at #519046: Clean up toolbar menu code which fixes most of the symptoms without hopefully adding too much extra cruft.
Comment #15
gábor hojtsyAnother reason system_admin_menu_block_access() does not make total sense is that there might be underlying tabs in the IA on D7. #545952: D7UX IA: move modules to config/modules is not viable as it is because ATM there are no default enabled modules exposing configuration to the configuration tab (admin/config path), so system_admin_menu_block_access() decides people should not have access, even though there is a tab underneath, which has content (but that is not rendered by system_admin_menu_block()).
Of course once we have core config items moved there, this will not be visible anymore, but it is still an issue for cases when the default tab on the item does not have accessible content but there are subtabs otherwise which have content.
Comment #16
catch#296693: Restrict access to empty top level administration pages was rolled back, and is still open for fixes, marking this as duplicate.