From 62304bccdb804fe0b21abc2b7629a15d2fc13515 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Sun, 1 Sep 2024 20:26:04 +0800 Subject: [PATCH] I'm an idiot, setting a value clears the cache for that setting so no need to make RestreamUrl never cache --- KfChatDotNetBot/Settings/BuiltIn.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/KfChatDotNetBot/Settings/BuiltIn.cs b/KfChatDotNetBot/Settings/BuiltIn.cs index 39c477d..b834b5c 100644 --- a/KfChatDotNetBot/Settings/BuiltIn.cs +++ b/KfChatDotNetBot/Settings/BuiltIn.cs @@ -332,15 +332,6 @@ public static class BuiltIn CacheDuration = TimeSpan.FromMinutes(5) }, new BuiltInSettingsModel - { - Key = Keys.KiwiFarmsToken, - Regex = ".+", - Description = "Last successfully retrieved forum token (will be refreshed automatically if expired)", - Default = null, - IsSecret = true, - CacheDuration = TimeSpan.FromHours(1) - }, - new BuiltInSettingsModel { Key = Keys.KickEnabled, Regex = "true|false", @@ -428,8 +419,7 @@ public static class BuiltIn Description = "URL for the restream", Default = "No URL set", IsSecret = false, - // No cache as it's infrequently accessed and should take effect immediately if a user updates it - CacheDuration = TimeSpan.Zero + CacheDuration = TimeSpan.FromHours(1) }, new BuiltInSettingsModel {