You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a layout, have one function that has PreventFunctionOutputCaching set to true
public override bool PreventFunctionOutputCaching { get { return true; } }
Add a news page
Visit the news page in incognito mode, (so there's no logged in user and the caching isn't disabled)
Refresh the page a few times
Expected:
The page is shown
Actual:
The page is shown only on the first visit, and 404 response is shown afterwards
Explanation:
Donut caching feature caches the output of the Composite.News.NewsList function, but doesn't caches the fact that C1PageRoute.RegisterPathInfoUsage(); should be invoked as well.
Workaround:
Add the following line to the affected function:
public override bool PreventFunctionOutputCaching { get { return true; } }
The text was updated successfully, but these errors were encountered:
Expected:
The page is shown
Actual:
The page is shown only on the first visit, and 404 response is shown afterwards
Explanation:
Donut caching feature caches the output of the Composite.News.NewsList function, but doesn't caches the fact that C1PageRoute.RegisterPathInfoUsage(); should be invoked as well.
Workaround:
Add the following line to the affected function:
The text was updated successfully, but these errors were encountered: