From d81206ff200f484bc7dbd8eee6b5422ec2b3b4dc Mon Sep 17 00:00:00 2001 From: Viren070 Date: Sun, 24 Aug 2025 23:13:22 +0100 Subject: [PATCH] fix: add rpdb api key to cache key --- packages/core/src/utils/rpdb.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/utils/rpdb.ts b/packages/core/src/utils/rpdb.ts index 35e763b1..278f64c5 100644 --- a/packages/core/src/utils/rpdb.ts +++ b/packages/core/src/utils/rpdb.ts @@ -65,7 +65,7 @@ export class RPDB { checkExists: boolean = true ): Promise { const parsedId = this.getParsedId(id, type); - const cacheKey = `${type}-${id}`; + const cacheKey = `${type}-${id}-${this.apiKey}`; const cached = await posterCheckCache.get(cacheKey); if (cached) { return cached; @@ -93,7 +93,7 @@ export class RPDB { } catch (error) { return null; } - posterCheckCache.set(cacheKey, posterUrl, 1 * 60 * 60); + posterCheckCache.set(cacheKey, posterUrl, 24 * 60 * 60); return posterUrl; }