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