From b8499d90c62e3cd36f945c9bbe598c56b85c2743 Mon Sep 17 00:00:00 2001 From: ld3zian <42660576+ld3z@users.noreply.github.com> Date: Sun, 2 Feb 2025 14:52:30 -0700 Subject: [PATCH] tweak backend by allowing feed ids to have their TTL reset --- src/lib/db.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/db.ts b/src/lib/db.ts index 8382c7e..90f6642 100644 --- a/src/lib/db.ts +++ b/src/lib/db.ts @@ -110,7 +110,7 @@ export async function storeFeedMapping(feedId: string, slugs: string[], lang: st feedId, JSON.stringify(mapping), 'EX', - DEFAULT_CACHE_TTL // Use the constant here + DEFAULT_CACHE_TTL ); } catch (error) { console.error('Error storing feed mapping:', error); @@ -128,6 +128,8 @@ export async function getFeedMapping(feedId: string): Promise