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

[4.x] Reduce queries #99

Open
wants to merge 1 commit into
base: 4.x
Choose a base branch
from
Open

[4.x] Reduce queries #99

wants to merge 1 commit into from

Conversation

BobWez98
Copy link
Collaborator

This PR adds some Statamic overwrites. It disables the hydration of globals as we're doing that ourselves. It also puts the meta query's for assets in the Cache. Sadly Statamic uses this logic in the control panel so we do need to execute it. By putting it in the Cache store instead of in Blink it reduces the queries on the frontend hugely.

Before these changes:
Scherm­afbeelding 2024-12-24 om 10 35 25

After these changes:
Scherm­afbeelding 2024-12-24 om 10 36 33

I'll put this as a draft to have it open for discussion, we can add this for 5.x later when necessary.

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

Successfully merging this pull request may close these issues.

1 participant