Problem/Motivation
This came up in our performance tests. The logic causes at least two additional queries, possibly a lot more with access checks and so on.
Steps to reproduce
Proposed resolution
Multiple things.
1. Instead of querying for the blocks, I think we can reliably get the from $variables['page']['navbar'], that should reliably contain the blocks we are looking for. In theory it could also contain other stuff, but then it shouldn't get loaded, that should be Ok.
2. Cache the information, probably by menu and active trail for it. To be implemented
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #3
berdirComment #6
pivica commentedMerged.
Comment #8
pivica commented