Skip to content

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
@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