From a42d6b954f990fc8d1f33649817fcf6cae825cb4 Mon Sep 17 00:00:00 2001 From: Shannon Date: Mon, 3 Apr 2017 21:14:45 +1000 Subject: [PATCH] ensure that we have cache = true for ITree and IApplication because otherwise we'll be scanning but they are implicitly cached because they are IDiscoverable --- src/umbraco.businesslogic/PluginManagerExtensions.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/umbraco.businesslogic/PluginManagerExtensions.cs b/src/umbraco.businesslogic/PluginManagerExtensions.cs index a7f60d3c27..0df66b3b0c 100644 --- a/src/umbraco.businesslogic/PluginManagerExtensions.cs +++ b/src/umbraco.businesslogic/PluginManagerExtensions.cs @@ -16,9 +16,8 @@ namespace umbraco.businesslogic /// /// internal static IEnumerable ResolveApplications(this PluginManager resolver) - { - //don't cache the result of this because it is only used once during app startup, caching will just add a bit more mem overhead for no reason - return resolver.ResolveTypesWithAttribute(cache:false); + { + return resolver.ResolveTypesWithAttribute(); } /// @@ -28,8 +27,7 @@ namespace umbraco.businesslogic /// internal static IEnumerable ResolveAttributedTrees(this PluginManager resolver) { - //don't cache the result of this because it is only used once during app startup, caching will just add a bit more mem overhead for no reason - return resolver.ResolveTypesWithAttribute(cache:false); + return resolver.ResolveTypesWithAttribute(); } }