mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Optimizing ContentPartDriverCoordinator
Prevents multiple evaluations off the same Linq expressions --HG-- branch : 1.x
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Orchard.ContentManagement.Drivers.Coordinators {
|
||||
if (contentTypeDefinition == null)
|
||||
return;
|
||||
|
||||
var partInfos = _drivers.SelectMany(cpp => cpp.GetPartInfo());
|
||||
var partInfos = _drivers.SelectMany(cpp => cpp.GetPartInfo()).ToList();
|
||||
|
||||
foreach (var typePartDefinition in contentTypeDefinition.Parts) {
|
||||
var partName = typePartDefinition.PartDefinition.Name;
|
||||
|
Reference in New Issue
Block a user