feat: log when freshly fetched

This commit is contained in:
2026-03-27 22:59:30 +07:00 Unverified
parent ff6800bfd0
commit ed53449a24
+2
View File
@@ -94,6 +94,7 @@ export class AssetManager {
return data;
}
log`Fresh: ${cacheKey}`;
const data = await this.deduper.acquire(cacheKey, () =>
fetch(new URL(path, "https://enka.network")).then((res) =>
res.arrayBuffer(),
@@ -193,6 +194,7 @@ export async function getEnkaStore<K extends keyof StoreTypeMap>(
const cached = cache.get(`store.${key}`);
if (cached) return cached as StoreTypeMap[K];
log`Fresh: store.${key}`;
const response = await fetch(
`https://github.com/EnkaNetwork/API-docs/raw/refs/heads/master/store/gi/${key}.json`,
);