Spaces:
Running on CPU Upgrade

mishig HF Staff Claude Sonnet 4.6 commited on
Commit
2b90078
·
1 Parent(s): f660c9b

fix(memory): prevent server OOM from unbounded Next.js fetch cache and dataset info cache

Browse files

- Add `cache: "no-store"` to fetchParquetFile, fetchJson, and tasks.jsonl fetch
so Next.js does not accumulate large parquet ArrayBuffers in its Data Cache
across many requests over days of continuous operation
- Cap datasetInfoCache at 200 entries with FIFO eviction to prevent unbounded growth

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

3 files changed +9 -4
Files changed (3)
src/app/[org]/[dataset]/[episode]/fetch-data.ts+1-1
src/utils/parquetUtils.ts+2-2
src/utils/versionUtils.ts+6-1