From 6fbda43855ef9ad192efe1add6f8792901fcacc6 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Wed, 4 Oct 2023 00:21:17 +1100 Subject: [PATCH] Reduce the cache expiration --- src/funcs/YTModule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/funcs/YTModule.ts b/src/funcs/YTModule.ts index 9450b3b..dd88daf 100644 --- a/src/funcs/YTModule.ts +++ b/src/funcs/YTModule.ts @@ -6,7 +6,7 @@ import MessageTool from '../helpers/MessageTool.js'; export default async(client:TClient, YTChannelID:string, YTChannelName:string, DiscordChannelID:string, DiscordRoleID:string)=>{ let Data: any; - let cacheExpiry: number = 14400; // Invalidate cache after sitting in Redis for 4 hours + let cacheExpiry: number = 7200; // Invalidate cache after sitting in Redis for 2 hours try { await fetch(`https://www.youtube.com/feeds/videos.xml?channel_id=${YTChannelID}`, { signal: AbortSignal.timeout(10000),