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 tags on shared error pages #10340

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

jacksleight
Copy link
Contributor

@jacksleight jacksleight commented Jun 20, 2024

The shared error pages introduced in #10294 currently throw a "Region not found" error when you use a nocache tag and hit a second URL. This is because there's only one cached page under a fake URL, but nocache is saving/fetching the region based on the actual URL.

This PR fixes it by setting the no cache session's URL to the fake one when calling fakeStaticCacheStatus.

@jacksleight jacksleight changed the title Fix nocache tags on shared error pages [5.x] Fix nocache tags on shared error pages Jun 20, 2024
@jasonvarga jasonvarga merged commit 217f6e6 into statamic:5.x Jun 20, 2024
17 checks passed
@jacksleight jacksleight deleted the fix/shared-error-nocache branch June 20, 2024 14:42
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.

2 participants