Skip to content

[5.x] Fix nocache race condition - #10642

Merged
jasonvarga merged 2 commits into
5.xfrom
nocache-race-condition
Aug 15, 2024
Merged

jasonvarga merged 2 commits into
5.xfrom
nocache-race-condition

Conversation

@jasonvarga

@jasonvarga jasonvarga commented Aug 15, 2024

Copy link
Copy Markdown
Member

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.

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