mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Prevent caching GetTaxonomy Action (#8628)
That action is called by LocalizedTaxonomyField editor view and need to not serve cached data
This commit is contained in:
+2
-1
@@ -34,6 +34,7 @@ namespace Orchard.Taxonomies.Controllers {
|
|||||||
_localizationService = localizationService;
|
_localizationService = localizationService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[OutputCache(NoStore = true, Duration = 0)]
|
||||||
public ActionResult GetTaxonomy(string contentTypeName, string taxonomyFieldName, int contentId, string culture) {
|
public ActionResult GetTaxonomy(string contentTypeName, string taxonomyFieldName, int contentId, string culture) {
|
||||||
var viewModel = new TaxonomyFieldViewModel();
|
var viewModel = new TaxonomyFieldViewModel();
|
||||||
bool autocomplete = false;
|
bool autocomplete = false;
|
||||||
@@ -90,4 +91,4 @@ namespace Orchard.Taxonomies.Controllers {
|
|||||||
return _taxonomyService.GetTermsForContentItem(part.ContentItem.Id, fieldName, versionOptions ?? VersionOptions.Published).Distinct(new TermPartComparer());
|
return _taxonomyService.GetTermsForContentItem(part.ContentItem.Id, fieldName, versionOptions ?? VersionOptions.Published).Distinct(new TermPartComparer());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user