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

This commit is contained in:
Shannon
2017-04-03 21:14:45 +10:00
parent 71b8674664
commit a42d6b954f

View File

@@ -16,9 +16,8 @@ namespace umbraco.businesslogic
/// <param name="resolver"></param>
/// <returns></returns>
internal static IEnumerable<Type> 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<IApplication, ApplicationAttribute>(cache:false);
{
return resolver.ResolveTypesWithAttribute<IApplication, ApplicationAttribute>();
}
/// <summary>
@@ -28,8 +27,7 @@ namespace umbraco.businesslogic
/// <returns></returns>
internal static IEnumerable<Type> 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<ITree, TreeAttribute>(cache:false);
return resolver.ResolveTypesWithAttribute<ITree, TreeAttribute>();
}
}