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

[5.x] Don't call ->in() twice while hydrating globals #10096

Merged
merged 2 commits into from
May 16, 2024

Conversation

modrictin
Copy link
Contributor

The existsIn() method calls ->in() inside. The in() method is resource consuming when someone has a lot of sites.

This reduce the loading time of this function up to 50%.

modrictin and others added 2 commits May 16, 2024 11:54
The `existsIn()` method calls `->in()` inside. The `in()` method is resource consuming when someone has a lot of sites.

This reduce the loading time of this function up to 50%.
@jasonvarga jasonvarga merged commit d85f4fc into statamic:5.x May 16, 2024
16 checks passed
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.

2 participants