pepijn223 HF Staff commited on
Commit
2985a11
·
unverified ·
1 Parent(s): 0ec6cb5

remove old ref

Browse files
Files changed (1) hide show
  1. src/utils/versionUtils.ts +0 -4
src/utils/versionUtils.ts CHANGED
@@ -98,10 +98,6 @@ export async function getDatasetInfo(repoId: string): Promise<DatasetInfo> {
98
  );
99
  }
100
 
101
- if (datasetInfoCache.size >= CACHE_MAX_SIZE) {
102
- // Evict the oldest entry (Maps preserve insertion order)
103
- datasetInfoCache.delete(datasetInfoCache.keys().next().value!);
104
- }
105
  datasetInfoCache.set(repoId, {
106
  data: data as DatasetInfo,
107
  expiry: Date.now() + CACHE_TTL_MS,
 
98
  );
99
  }
100
 
 
 
 
 
101
  datasetInfoCache.set(repoId, {
102
  data: data as DatasetInfo,
103
  expiry: Date.now() + CACHE_TTL_MS,