Core.Cache - fix bug in StaticCacheProvider

This commit is contained in:
Stephan
2013-09-18 10:46:34 +02:00
parent 761354dbf5
commit d1f36346de

View File

@@ -72,7 +72,7 @@ namespace Umbraco.Core.Cache
public override T GetCacheItem<T>(string cacheKey, Func<T> getCacheItem)
{
return (T)_staticCache.GetOrAdd(cacheKey, getCacheItem);
return (T)_staticCache.GetOrAdd(cacheKey, key => getCacheItem());
}
}