From 81928a5948ccfc2e9c0f9df9c8f62a6877995c88 Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 20 Oct 2014 18:31:21 +0200 Subject: [PATCH] bugfix PublishedContentType cache key --- .../Models/PublishedContent/PublishedContentType.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs index a0fa7932b5..5f30c08ce7 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs @@ -133,7 +133,7 @@ namespace Umbraco.Core.Models.PublishedContent public static PublishedContentType Get(PublishedItemType itemType, string alias) { var key = string.Format("PublishedContentType_{0}_{1}", - itemType == PublishedItemType.Content ? "content" : "media", alias.ToLowerInvariant()); + itemType.ToString().ToLowerInvariant(), alias.ToLowerInvariant()); var type = ApplicationContext.Current.ApplicationCache.StaticCache.GetCacheItem(key, () => CreatePublishedContentType(itemType, alias));