Preview mode unable to retrieve other pages from cache
See original GitHub issueBug summary
Since Umbraco 7.15.0 we are unable to use the preview function in at least 3 of our websites. While loading the previewed page I try to retrieve other pages using content.AncestorOrSelf()
or content.Siblings()
and I receive null or unexpected results (see screenshots).
Specifics
- 7.15.0 up to 7.15.3
- The bug disappears when
Umbraco.Preview.Mode
is set toLegacy
This is interesting, only previously previewed pages are showing up in the list but the page with ID 1050 should not be a sibling.
Expected result
A webpage that loads in successfully without exceptions.
Actual result
NullReferenceException in the code that runs fine outside the preview mode.
Issue Analytics
- State:
- Created 4 years ago
- Comments:18 (18 by maintainers)
Top Results From Across the Web
How to Fix the 'Cached Preview' Error in After Effects
In this article, we're going to talk about how to fix this 'Cached Preview' error in After Effects. If you follow all of...
Read more >Error on dynamic page unable to Test Cache
Page caching seems not working for both dynamic and static pages. ... in incognito mode 'cause sometimes Cloudflare bypass the cache for cURL...
Read more >How to Fix the 'Cached Preview' Error in After Effects - YouTube
Your browser can't play this video. Learn more.
Read more >Chrome keeps loading a old cache of my website
I tried to clean the browser cache, use igcognito mode, and clean DNS cache. The old cached page is still being loaded. This...
Read more >WordPress Changes Not Showing? Here's How to Fix the ...
Having issues with WordPress changes not showing on your site? It's usually problems with caching - we'll show you how to fix the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was able to reproduce this as well. I created a PR that fixes this behavior.
Haha! Thank you, yes, meant to say fixed in https://github.com/umbraco/Umbraco-CMS/pull/8636 😅