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

Make the member group voter cacheable #7089

Merged
merged 3 commits into from Apr 18, 2024

Conversation

aschempp
Copy link
Member

@aschempp aschempp commented Apr 5, 2024

I noticed in the profiler that our MemberGroupVoter was asked for a decision for totally unrelated attributes. That's because it did not correctly implement the CacheableVoterInterface, it did not limit the attributes it wanted to vote on. This PR fixes that by not using the unnecessary abstract and correctly only supportsAttribute on what we want.

@aschempp aschempp added the bug label Apr 5, 2024
@aschempp aschempp added this to the 5.3 milestone Apr 5, 2024
@aschempp aschempp requested a review from a team April 5, 2024 06:48
@aschempp aschempp self-assigned this Apr 5, 2024
@leofeyer leofeyer changed the title Make the MemberGroupVoter cacheable Make the member group voter cacheable Apr 18, 2024
@leofeyer leofeyer enabled auto-merge (squash) April 18, 2024 15:49
@leofeyer
Copy link
Member

Thank you @aschempp.

@leofeyer leofeyer merged commit be8817e into contao:5.3 Apr 18, 2024
17 of 18 checks passed
@aschempp aschempp deleted the fix/member-voter-cache branch April 24, 2024 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants