I have a content folder associated with a Tag folder as category
i'm in the tagrepository and use this code in my method
Code:
var svc = Context.ContentService;
return svc.GetCategoriesByContentAndFolder(content.UUID, FolderName, "", "", null, 0, 100, CacheTime)
.Select(c => WriteModel(new Models.Tag(), c));
this returns all the tags associated to my content
but if i update the tags in this content doing this in the TagRepository
Code:
svc.RemoveCategoryFromContent(content.UUID, tag.UUID);//in a loop to remove all
and then adding again, but this in the contentRepository
Code:
var svc = Context.ContentService;
foreach (var item in tags)
{
svc.AddCategoryToContent(content.UUID, item.UUID);
}
then the first code reads the previous tags and not the actual saved, I need to restart the webserver to show the correct value
Shouldn't update the cache or clear it after the update methods?