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? Thanks!
Macro cache in usercontrol
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? Thanks!
Hi Harry
This is a known bug in Umbraco 4.6.1 and will be fixed in the upcoming release 4.6.2 out next week hopefully.
Peter
is working on a reply...