bugfix PublishedContentType cache key

This commit is contained in:
Stephan
2014-10-20 18:31:21 +02:00
parent 15413a75fe
commit 81928a5948

View File

@@ -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<PublishedContentType>(key,
() => CreatePublishedContentType(itemType, alias));