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] Fix nocache race condition #10642

Merged
merged 2 commits into from
Aug 15, 2024
Merged

[5.x] Fix nocache race condition #10642

merged 2 commits into from
Aug 15, 2024

Conversation

jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented Aug 15, 2024

Fixes a race condition when rendering antlers views via nocache.

It's possible that two requests come in at almost the exact moment and one request's view is cleaned up before the other request has a chance to render it, resulting in a view not found exception.

This PR makes the view names unique so there's no overlap.

It also removes a file exists check that isn't related to the race condition but noticed it's not necessary while in there.

@jasonvarga jasonvarga merged commit ba1833b into 5.x Aug 15, 2024
20 checks passed
@jasonvarga jasonvarga deleted the nocache-race-condition branch August 15, 2024 20:36
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