From 7aadb4afa46ef114dd9a5262626f243f0e16a55f Mon Sep 17 00:00:00 2001 From: MinhxNguyen7 Date: Sat, 26 Aug 2023 15:13:30 +0700 Subject: [PATCH] Clear gradesCache when clearing websocCache --- apps/antalmanac/src/lib/helpers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/antalmanac/src/lib/helpers.ts b/apps/antalmanac/src/lib/helpers.ts index 25ea77d23..ea194a397 100644 --- a/apps/antalmanac/src/lib/helpers.ts +++ b/apps/antalmanac/src/lib/helpers.ts @@ -104,6 +104,7 @@ const websocCache: { [key: string]: CacheEntry } = {}; export function clearCache() { Object.keys(websocCache).forEach((key) => delete websocCache[key]); //https://stackoverflow.com/a/19316873/14587004 + Object.keys(gradesCache).forEach((key) => delete gradesCache[key]); //https://stackoverflow.com/a/19316873/14587004 } function cleanParams(record: Record) {