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

don't cache preview requests either #15589

Merged
merged 4 commits into from
Aug 26, 2024

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Aug 23, 2024

Description

Don’t enable template caching in a preview mode, either.

At the moment, a request with an invalid or expired token would still return true from the getHadToken() method, which means such a request wouldn’t be cached. The PR ensures that the template caching is also not enabled for a live preview request that doesn’t have a token (which is what will happen if you open preview mode on an entry that has no changes).

Related issues

#15586

@i-just i-just requested a review from brandonkelly August 23, 2024 15:02
@brandonkelly brandonkelly merged commit 8adefc8 into 4.x Aug 26, 2024
@brandonkelly brandonkelly deleted the bugfix/15586-dont-cache-preview-requests branch August 26, 2024 15:09
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