feat(bot): config key to toggle local cache lookups

This commit is contained in:
alyssa 2024-10-17 01:55:35 +09:00
parent 20ab671f98
commit 84652d6e3d
3 changed files with 21 additions and 16 deletions

View file

@ -51,7 +51,7 @@ public class BotModule: Module
if (botConfig.HttpCacheUrl != null)
{
var cache = new HttpDiscordCache(c.Resolve<ILogger>(),
c.Resolve<HttpClient>(), botConfig.HttpCacheUrl, botConfig.Cluster?.TotalShards ?? 1, botConfig.ClientId);
c.Resolve<HttpClient>(), botConfig.HttpCacheUrl, botConfig.Cluster?.TotalShards ?? 1, botConfig.ClientId, botConfig.HttpUseInnerCache);
var metrics = c.Resolve<IMetrics>();