Hi,
I'm having a real trouble clearing my xml cache for tags. I've tried most things including touching the web.config, republishing with xml set to true and publishing all pages manually. Nothing works and I keep getting old tags that don't have content any longer. Where does it get the tagnames from and how can I fix this? All help appreciated. Here is my code snippet.
@inherits umbraco.MacroEngines.DynamicNodeContext
@using umbraco.MacroEngines;
@using Tags = umbraco.editorControls.tags;
@{
var rawTagXml = Tags.library.getAllTagsInGroup("default").Current.InnerXml;
var articleTags = new DynamicXml(rawTagXml);
if (articleTags.Any())
{
<div id="loadingDiv">Laddar</div>
<ul class="taggListning">
<li><a href="javascript:void(0)" class="tag senaste">Visa senaste</a></li>
@foreach (var tag in articleTags)
{
<li><a rel="tag" title="@tag.InnerText" class="tag @tag.InnerText" href="javascript:void(0)">@tag.InnerText</a></li>
}
</ul>
}
}
Can you change the text of other fields on the site without them being cached too aggressively too?
Do the tags re-appear if you go to the /App_Data/ folder and delete the umbraco.config file? (It will be re-created automatically when you save and publish or do other things like visiting the site etc.).
If so I think it's either an issue with the tags datatype or perhaps related to some macro caching? Or custom caching?
Has there been setup a caching interval on the macro?
Hi Jan,
the tags do appear when I delete the config so I'm guessing it has something todo with the tags datatype since the macro doesn't have any caching set to it. Very strange. I can change text on other fields without problem, it's just for the tags.
Cannot clear XML cache for tags
Hi, I'm having a real trouble clearing my xml cache for tags. I've tried most things including touching the web.config, republishing with xml set to true and publishing all pages manually. Nothing works and I keep getting old tags that don't have content any longer. Where does it get the tagnames from and how can I fix this? All help appreciated. Here is my code snippet.
Hi Niklas
Can you change the text of other fields on the site without them being cached too aggressively too?
Do the tags re-appear if you go to the /App_Data/ folder and delete the umbraco.config file? (It will be re-created automatically when you save and publish or do other things like visiting the site etc.).
If so I think it's either an issue with the tags datatype or perhaps related to some macro caching? Or custom caching?
Has there been setup a caching interval on the macro?
/Jan
Hi Jan, the tags do appear when I delete the config so I'm guessing it has something todo with the tags datatype since the macro doesn't have any caching set to it. Very strange. I can change text on other fields without problem, it's just for the tags.
is working on a reply...