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] Handle lock timeout in cache middleware #10607

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented Aug 9, 2024

If you have static caching enabled, and you visit a page that is being generated in another process, your request will wait until the other request is done. If that takes longer than 30 seconds, you'll get an exception since #10370. Before that, I think the page would just time out.

This PR will now output a blank page that says unavailable and automatically refreshes. This is the same thing that happens in the Stache locking middleware.

@jasonvarga jasonvarga merged commit b12d683 into 5.x Aug 9, 2024
19 checks passed
@jasonvarga jasonvarga deleted the handle-lock-timeout-in-cache-middleware branch August 9, 2024 17:52
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