mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Merge pull request #6099 from jtkech/patch-3
Invalidate image profile cache for images only
This commit is contained in:
@@ -14,6 +14,7 @@ namespace Orchard.MediaProcessing.Handlers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected override void Published(PublishContentContext context) {
|
protected override void Published(PublishContentContext context) {
|
||||||
|
if (context.ContentItem.Has<ImageProfilePart>())
|
||||||
_signals.Trigger("MediaProcessing_Published_" + context.ContentItem.As<ImageProfilePart>().Name);
|
_signals.Trigger("MediaProcessing_Published_" + context.ContentItem.As<ImageProfilePart>().Name);
|
||||||
base.Published(context);
|
base.Published(context);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user