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] Cache structure call on page instances #9657

Merged
merged 4 commits into from
Mar 12, 2024
Merged

[5.x] Cache structure call on page instances #9657

merged 4 commits into from
Mar 12, 2024

Conversation

JohnathonKoster
Copy link
Contributor

This PR adds an instance cache/property to reduce the number of times we call ->tree->structure() on Page instances.

@JohnathonKoster JohnathonKoster mentioned this pull request Mar 3, 2024
37 tasks
Copy link
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please target master and adjust the PR title to show [5.x].

@JohnathonKoster JohnathonKoster changed the base branch from 4.x to master March 8, 2024 00:51
@JohnathonKoster JohnathonKoster changed the title [4.x] Cache structure call on page instances [5.x] Cache structure call on page instances Mar 8, 2024
@jasonvarga jasonvarga dismissed their stale review March 11, 2024 17:01

Requested changes were made.

@jasonvarga jasonvarga merged commit 75f5a62 into statamic:master Mar 12, 2024
2 of 14 checks passed
@jasonvarga jasonvarga deleted the cache-page-structure branch March 12, 2024 17:21
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