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

Fix Live Preview with nocache tag when entry is draft #6724

Closed
wants to merge 1 commit into from

Conversation

edalzell
Copy link
Contributor

If an entry is a draft and the entry's template uses the nocache tag, then you see the nocache placeholder when in Live Preview.

This fixes it.

NOTE: @jasonvarga gave me this code, hoping he can explain it.

@jasonvarga
Copy link
Member

No need to PR code that you can't explain. 😄 I only gave that to you as a proof of concept of the fix. If you can open an issue instead I'll address it.

@edalzell
Copy link
Contributor Author

Note that this causes issues with the cache and might bring your site down.

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