diff options
Diffstat (limited to 'src/lib/Data/AniList/cacheHydration.ts')
| -rw-r--r-- | src/lib/Data/AniList/cacheHydration.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Data/AniList/cacheHydration.ts b/src/lib/Data/AniList/cacheHydration.ts index 434d2a82..61cb1e60 100644 --- a/src/lib/Data/AniList/cacheHydration.ts +++ b/src/lib/Data/AniList/cacheHydration.ts @@ -5,6 +5,7 @@ import manga from "$stores/manga"; import localforage from "localforage"; type MediaCacheKind = "anime" | "manga"; +const cacheStorageKey = (kind: MediaCacheKind) => `${kind}:v3`; interface StoredLastPruneTimes { anime: number; @@ -32,7 +33,7 @@ export const hydrateMediaListCache = (kind: MediaCacheKind) => { const promise = (async () => { const [cache, pruneTimes] = await Promise.all([ - localforage.getItem<string>(kind), + localforage.getItem<string>(cacheStorageKey(kind)), localforage.getItem<StoredLastPruneTimes>("lastPruneTimes"), ]); |