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:
Shannon
2015-01-13 13:25:36 +11:00
parent ef2c46b6ab
commit e3acdbe85b
76 changed files with 1264 additions and 778 deletions

View File

@@ -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(