feat: log when freshly fetched
This commit is contained in:
@@ -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`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user