Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INavigationFilter implementations should not repeat queries #8689

Closed
MatteoPiovanelli-Laser opened this issue May 19, 2023 · 3 comments
Closed
Milestone

Comments

@MatteoPiovanelli-Laser
Copy link
Contributor

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.

@BenedekFarkas
Copy link
Member

Can this be solved together with #8688 or the underlying logic is too different?

@MatteoPiovanelli-Laser
Copy link
Contributor Author

They are different/unrelated.
This one is at a "higher level", in a sense. These providers should be repeating operations they don't need.
The other issue is deeper, and I think it should be handled transparently from whatever modules are doing.

@sebastienros sebastienros added this to the 1.10.x milestone May 25, 2023
@sebastienros
Copy link
Member

In OC these menus are cached on the page itself, using fragment caching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants