From 0f5877ce7fed7409edb7a238031cc23091946e4c Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@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),