mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-18 09:44:20 +08:00
Update SslSettingsPartHandler.cs (#8715)
Adds the OnUpdated handler in order to Invalidate the cache of the settings
This commit is contained in:
@@ -18,6 +18,7 @@ namespace Orchard.SecureSocketsLayer.Handlers {
|
|||||||
Filters.Add(new ActivatingFilter<SslSettingsPart>("Site"));
|
Filters.Add(new ActivatingFilter<SslSettingsPart>("Site"));
|
||||||
|
|
||||||
// Evict cached content when updated, removed or destroyed.
|
// Evict cached content when updated, removed or destroyed.
|
||||||
|
OnUpdated<SslSettingsPart>((context, part) => Invalidate(part));
|
||||||
OnPublished<SslSettingsPart>((context, part) => Invalidate(part));
|
OnPublished<SslSettingsPart>((context, part) => Invalidate(part));
|
||||||
OnRemoved<SslSettingsPart>((context, part) => Invalidate(part));
|
OnRemoved<SslSettingsPart>((context, part) => Invalidate(part));
|
||||||
OnDestroyed<SslSettingsPart>((context, part) => Invalidate(part));
|
OnDestroyed<SslSettingsPart>((context, part) => Invalidate(part));
|
||||||
@@ -40,4 +41,4 @@ namespace Orchard.SecureSocketsLayer.Handlers {
|
|||||||
_signals.Trigger("SslSettingsPart_EvictAll");
|
_signals.Trigger("SslSettingsPart_EvictAll");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user