mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-10-30 03:50:47 -04:00
fixed stale http options after second settings update
This commit is contained in:
1 parent
289ffe314f
commit
296ee1a544
2 files changed
+25
-1
No files matched your search
+2
@@ -199,6 +199,8 @@ public class DynamicHttpClientFactory : IDynamicHttpClientFactory
|
||||
var clientNames = updatedConfigurations.Select(kvp => kvp.Key).ToList();
|
||||
foreach (string clientName in clientNames)
|
||||
{
|
||||
// Direct IHttpClientFactory consumers (ArrClient, notification proxies) request the bare name.
|
||||
_optionsCache.TryRemove(clientName);
|
||||
_optionsCache.TryRemove(ComposeVersionedName(clientName, GetGeneration(clientName)));
|
||||
BumpGeneration(clientName);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user