#20228: Fixing image profiles cache key

Work Item: 20228
This commit is contained in:
Sebastien Ros 2013-10-24 09:32:22 -07:00
parent fc715b59ef
commit 16787ab807

View File

@ -29,7 +29,7 @@ namespace Orchard.MediaProcessing.Services {
public ImageProfilePart GetImageProfileByName(string name) {
var profileId = _cacheManager.Get("ProfileId", ctx => {
var profileId = _cacheManager.Get("ProfileId_" + name, ctx => {
var profile = _contentManager.Query<ImageProfilePart, ImageProfilePartRecord>()
.Where(x => x.Name == name)
.Slice(0, 1)