From f2fb275b348b91f0912b4b2bf1f15def614fbd66 Mon Sep 17 00:00:00 2001 From: Stephan Date: Thu, 30 Mar 2017 09:58:27 +0200 Subject: [PATCH] Fix post-merge issues --- .../Persistence/Repositories/DataTypeDefinitionRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/Persistence/Repositories/DataTypeDefinitionRepository.cs b/src/Umbraco.Core/Persistence/Repositories/DataTypeDefinitionRepository.cs index f65e467079..1ebfb4bc47 100644 --- a/src/Umbraco.Core/Persistence/Repositories/DataTypeDefinitionRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/DataTypeDefinitionRepository.cs @@ -287,7 +287,7 @@ AND umbracoNode.id <> @id", /// PreValue as a string public string GetPreValueAsString(int preValueId) { - var collections = GlobalCache.RuntimeCache.GetCacheItemsByKeySearch(CacheKeys.DataTypePreValuesCacheKey + "_"); + var collections = IsolatedCache.GetCacheItemsByKeySearch(CacheKeys.DataTypePreValuesCacheKey + "_"); var preValue = collections.SelectMany(x => x.FormatAsDictionary().Values).FirstOrDefault(x => x.Id == preValueId); if (preValue != null) @@ -437,7 +437,7 @@ AND umbracoNode.id <> @id", private PreValueCollection GetCachedPreValueCollection(int datetypeId) { var key = GetPrefixedCacheKey(datetypeId); - return GlobalCache.RuntimeCache.GetCacheItem(key, () => + return IsolatedCache.GetCacheItem(key, () => { var dtos = Database.Fetch("WHERE datatypeNodeId = @Id", new { Id = datetypeId }); var list = dtos.Select(x => new Tuple(new PreValue(x.Id, x.Value, x.SortOrder), x.Alias, x.SortOrder)).ToList();