Fixes issue U4-9332

U4-9332 Language of DefaultCultureDictionary is cached without the current Culture identifier
This commit is contained in:
Stephan Lonntorp
2017-01-02 14:53:57 +01:00
committed by GitHub
parent 98430fd573
commit 1b8c68af02

View File

@@ -137,7 +137,7 @@ namespace Umbraco.Web.Dictionary
{
//ensure it's stored/retrieved from request cache
//NOTE: This is no longer necessary since these are cached at the runtime level, but we can leave it here for now.
return _requestCacheProvider.GetCacheItem<ILanguage>(typeof (DefaultCultureDictionary).Name + "Culture",
return _requestCacheProvider.GetCacheItem<ILanguage>(typeof (DefaultCultureDictionary).Name + "Culture" + Culture.Name,
() => _localizationService.GetLanguageByIsoCode(Culture.Name));
}
}