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] Removes fluent getter/setter and caches results for origin and hasOrigin #9639

Merged
merged 8 commits into from
Mar 25, 2024
Merged

[5.x] Removes fluent getter/setter and caches results for origin and hasOrigin #9639

merged 8 commits into from
Mar 25, 2024

Conversation

JohnathonKoster
Copy link
Contributor

This PR removes the fluent getter/setter from HasOrigin and uses a cached value for hasOrigin. These methods are used in a number of hot code paths.

@JohnathonKoster JohnathonKoster mentioned this pull request Mar 2, 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 01:07
@JohnathonKoster JohnathonKoster changed the title [4.x] Removes fluent getter/setter and caches results for origin and hasOrigin [5.x] Removes fluent getter/setter and caches results for origin and hasOrigin Mar 8, 2024
@jasonvarga jasonvarga dismissed their stale review March 11, 2024 16:56

Requested changes were made.

src/Data/HasOrigin.php Outdated Show resolved Hide resolved
src/Data/HasOrigin.php Outdated Show resolved Hide resolved
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.

Also there's a merge conflict due to #9661

@JohnathonKoster JohnathonKoster marked this pull request as draft March 13, 2024 00:37
@JohnathonKoster JohnathonKoster marked this pull request as ready for review March 13, 2024 01:10
@jasonvarga jasonvarga merged commit bd7e89a into statamic:master Mar 25, 2024
16 checks passed
@jasonvarga jasonvarga deleted the cache-data-has-origin branch March 25, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants