mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Update TaxonomyService.cs
Improves, but does not fully resolve, the performance problems described in issue #5663.
This commit is contained in:
@@ -266,9 +266,9 @@ namespace Orchard.Taxonomies.Services {
|
||||
}
|
||||
|
||||
var termPartRecordIds = termList.Select(t => t.Term.TermRecord.Id).ToArray();
|
||||
_processingEngine.AddTask(_shellSettings, _shellDescriptorManager.GetShellDescriptor(), "ITermCountProcessor.Process", new Dictionary<string, object> { { "termPartRecordIds", termPartRecordIds } });
|
||||
|
||||
|
||||
if (termPartRecordIds.Length > 0) {
|
||||
_processingEngine.AddTask(_shellSettings, _shellDescriptorManager.GetShellDescriptor(), "ITermCountProcessor.Process", new Dictionary<string, object> { { "termPartRecordIds", termPartRecordIds } });
|
||||
}
|
||||
}
|
||||
|
||||
public IContentQuery<TermsPart, TermsPartRecord> GetContentItemsQuery(TermPart term, string fieldName = null) {
|
||||
|
Reference in New Issue
Block a user