Compare commits

...

1 Commits

Author SHA1 Message Date
Hermes Sbicego
cb039611b8 Prevent caching GetTaxonomy Action
That action is called by LocalizedTaxonomyField editor view and need to not serve cached data
2022-10-07 17:30:33 +02:00

View File

@@ -34,6 +34,7 @@ namespace Orchard.Taxonomies.Controllers {
_localizationService = localizationService;
}
[OutputCache(NoStore = true, Duration = 0)]
public ActionResult GetTaxonomy(string contentTypeName, string taxonomyFieldName, int contentId, string culture) {
var viewModel = new TaxonomyFieldViewModel();
bool autocomplete = false;
@@ -90,4 +91,4 @@ namespace Orchard.Taxonomies.Controllers {
return _taxonomyService.GetTermsForContentItem(part.ContentItem.Id, fieldName, versionOptions ?? VersionOptions.Published).Distinct(new TermPartComparer());
}
}
}
}