We noticed some "repeated" queries when generating some test pages.
As the system has to build menus, if the same menu is configured in more places in the page (e.g. in more than one widget in different zones) some providers will repeat the queries they use to fetch the relevant information.
The "culprits" we found so far are:
Both this situations can be fixed easily by memorizing the results of the first pass.
A PR for this is coming.
We noticed some "repeated" queries when generating some test pages.
As the system has to build menus, if the same menu is configured in more places in the page (e.g. in more than one widget in different zones) some providers will repeat the queries they use to fetch the relevant information.
The "culprits" we found so far are:
DefaultMenuProviderthat fetches again the list ofMenuPartsOrchard/src/Orchard.Web/Core/Navigation/Services/DefaultMenuProvider.cs
Line 9 in 610b3c4
TaxonomyNavigationProviderthat fetches again the list of terms.Orchard/src/Orchard.Web/Modules/Orchard.Taxonomies/Navigation/TaxonomyNavigationProvider.cs
Line 16 in 610b3c4
Both this situations can be fixed easily by memorizing the results of the first pass.
A PR for this is coming.