Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
toolbar.menu_tree:
class: Drupal\toolbar\Menu\ToolbarMenuLinkTree
arguments: ['@menu.tree_storage', '@plugin.manager.menu.link', '@router.route_provider', '@menu.active_trail', '@controller_resolver', '@cache.menu', '@current_route_match']
@cache.menu and @current_route_match seems unused.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3002741-2.patch | 697 bytes | hardikpandya |
Comments
Comment #2
hardikpandya CreditAttribution: hardikpandya at Trigyn Technologies Ltd commentedComment #3
tstoecklerYup, great catch!
Looks like this was missed in #2479363: Cache MenuActiveTrail::getActiveIds() for *all* menus per route match: 1 cache get instead of N DB queries, saves 1 ms/response.
Comment #4
tstoecklerComment #6
catchCommitted d078c92 and pushed to 8.7.x. Thanks!