This works ok without caching in the Macro. But if I enable caching:
The first time it runs it's ok
But on cached output, the output of the codebehind (The literal
control's text) is not cached, so in the next refresh the literal gets
replaced with it's default value (null string)
Also on each reload, the following is not updated, but the time of the original usercontrol creation time is shown:
<%=System.DateTime.Now.ToString("G") %>
But watching the video in umbraco.tv, the video seems to suggest that on each refresh, the
<%=System.DateTime.Now.ToString("G") %>
should be replaced with the current time regardless whether caching was
used or not, and also the value in Dt created by code the first time
should be displayed. What am I doing wrong here? Using 4.6.1. Thanks!
Different behavior than expected from umbraco.tv tutorial on macro caching
Hi! I'm following the Macro Caching video in umbraco.tv and recreated the example in it.
This works ok without caching in the Macro. But if I enable caching:
But watching the video in umbraco.tv, the video seems to suggest that on each refresh, the
should be replaced with the current time regardless whether caching was used or not, and also the value in Dt created by code the first time should be displayed. What am I doing wrong here? Using 4.6.1. Thanks!
Hi Harry
This is a known bug in 4.6.1 and is being fixed for the 4.6.2 release.
Thanks
Peter Gregory
is working on a reply...