mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-08-01 17:51:18 +08:00
parent
fc715b59ef
commit
16787ab807
@ -29,7 +29,7 @@ namespace Orchard.MediaProcessing.Services {
|
|||||||
|
|
||||||
public ImageProfilePart GetImageProfileByName(string name) {
|
public ImageProfilePart GetImageProfileByName(string name) {
|
||||||
|
|
||||||
var profileId = _cacheManager.Get("ProfileId", ctx => {
|
var profileId = _cacheManager.Get("ProfileId_" + name, ctx => {
|
||||||
var profile = _contentManager.Query<ImageProfilePart, ImageProfilePartRecord>()
|
var profile = _contentManager.Query<ImageProfilePart, ImageProfilePartRecord>()
|
||||||
.Where(x => x.Name == name)
|
.Where(x => x.Name == name)
|
||||||
.Slice(0, 1)
|
.Slice(0, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user