fix: separate card caching by char id

This commit is contained in:
2026-03-18 15:43:56 +07:00 Unverified
parent 3f79315e00
commit 2c6ad3e244
+3 -1
View File
@@ -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();