From de334f5130712b2a1cbe8aa51fbe7c3f87e10f3e Mon Sep 17 00:00:00 2001 From: tidusjar Date: Wed, 6 Dec 2017 21:59:04 +0000 Subject: [PATCH] Fixed the issue where notifications were not sendind unless we restarted #1732 --- src/Ombi.Notifications/Interfaces/BaseNotification.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Ombi.Notifications/Interfaces/BaseNotification.cs b/src/Ombi.Notifications/Interfaces/BaseNotification.cs index 91e4469e8..bc681ceed 100644 --- a/src/Ombi.Notifications/Interfaces/BaseNotification.cs +++ b/src/Ombi.Notifications/Interfaces/BaseNotification.cs @@ -23,6 +23,8 @@ namespace Ombi.Notifications.Interfaces MovieRepository = movie; TvRepository = tv; CustomizationSettings = customization; + Settings.ClearCache(); + CustomizationSettings.ClearCache(); } protected ISettingsService Settings { get; } @@ -46,6 +48,7 @@ namespace Ombi.Notifications.Interfaces public async Task NotifyAsync(NotificationOptions model, Settings.Settings.Models.Settings settings) { + Settings.ClearCache(); if (settings == null) await NotifyAsync(model); var notificationSettings = (T)settings;