Fixes up dictionary and language repositories to have underlying simple get repositories since they support getting by id, unique id and string variations but we want to have native repository enabled caching for these items so these get methods now use private repositories based on these keys. Adds more tests, removes N+1 queries for languages and dictionary items. Removes RuntimeCacheProvider, we only want one type of cache, this simplifies things a lot.
This commit is contained in:
@@ -205,8 +205,9 @@ namespace Umbraco.Tests.TestHelpers
|
||||
() => PluginManager.Current.ResolveDataTypes());
|
||||
|
||||
RepositoryResolver.Current = new RepositoryResolver(
|
||||
new RepositoryFactory(true, //disable all repo caches for tests!
|
||||
new RepositoryFactory(CacheHelper.CreateDisabledCacheHelper(), //disable all repo caches for tests!
|
||||
Logger,
|
||||
SqlSyntaxProvider,
|
||||
SettingsForTests.GenerateMockSettings()));
|
||||
|
||||
SqlSyntaxProvidersResolver.Current = new SqlSyntaxProvidersResolver(
|
||||
|
||||
Reference in New Issue
Block a user