mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-31 21:41:40 +08:00
parent
fc715b59ef
commit
16787ab807
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user