I'm having real problem with caching in a macro. I've
set the cache period to 0 but still a dropdownlist that returns a list
of other items in the content tree won't update until I force the
application to recycle e.g. touch the web.config file.
The Macro uses umbraco.content.Instance.XmlContent.SelectSingleNode
to select a parent node and then loops through the children and adds
these to the dropdownlist.
When I add a new child to this node it doesn't appear in the
dropdownlist even if I publish the entire website again.
I'm not sure where this caching is taking place. Can anyone point me
in the right direction?
You may want to look at using some of the umbraco.library methods for accessing your data, rather than querying the in memory instance directly. Not sure whether this will solve your issue, but worth a try
Caching in a macro
I'm having real problem with caching in a macro. I've set the cache period to 0 but still a dropdownlist that returns a list of other items in the content tree won't update until I force the application to recycle e.g. touch the web.config file.
The Macro uses umbraco.content.Instance.XmlContent.SelectSingleNode to select a parent node and then loops through the children and adds these to the dropdownlist.
When I add a new child to this node it doesn't appear in the dropdownlist even if I publish the entire website again.
I'm not sure where this caching is taking place. Can anyone point me in the right direction?
Hey David.
Hav you also un-checked "Cache by page" and "Cache personalized" on your macro?
Matt
Hi Matt
I've tried all possible combinations!
Dave
Hey Dave,
You may want to look at using some of the umbraco.library methods for accessing your data, rather than querying the in memory instance directly. Not sure whether this will solve your issue, but worth a try
http://our.umbraco.org/wiki/reference/umbracolibrary
I'd be looking at
Matt
is working on a reply...