fix: separate card caching by char id
This commit is contained in:
+3
-1
@@ -86,7 +86,9 @@ export function card(app: App) {
|
||||
store: weaponStore[weaponRaw.itemId ?? "Unknown"],
|
||||
};
|
||||
|
||||
const cacheKey = hash(JSON.stringify(data)).toString(36);
|
||||
const cacheKey = hash(JSON.stringify({ data, charId })).toString(
|
||||
36,
|
||||
);
|
||||
if (feature("API")) {
|
||||
const cached = cache.get<ImageResponse>(cacheKey);
|
||||
if (cached) return cached.clone();
|
||||
|
||||
Reference in New Issue
Block a user