Skip to content

[surfacers.probestatus] Evict stale entries from pageCache - #1282

Merged
manugarg merged 1 commit into
mainfrom
fix/unbounded-map-growth
Mar 29, 2026
Merged

manugarg merged 1 commit into
mainfrom
fix/unbounded-map-growth

Conversation

@manugarg

Copy link
Copy Markdown
Contributor

Two in-memory caches could grow unboundedly over long runtimes:

  • probestatus pageCache: entries for each unique URL were never evicted. Now expired entries are cleaned up on each setContent call.

  • DNS resolver cache: entries for each unique hostname were never removed. Now idle entries (not accessed for 1 hour) are periodically evicted during getCacheRecord calls (every 10 minutes).

The probestatus pageCache stored entries for each unique URL but never
evicted them, allowing unbounded growth from requests with varying
query parameters. Now expired entries are cleaned up on each
setContent call.
@manugarg
manugarg force-pushed the fix/unbounded-map-growth branch from cd302b4 to 3ee5f96 Compare March 29, 2026 02:46
@manugarg manugarg changed the title Evict stale entries from pageCache and DNS resolver cache [cleanup] Evict stale entries from pageCache Mar 29, 2026
@manugarg manugarg changed the title [cleanup] Evict stale entries from pageCache [surfacers.probestatus] Evict stale entries from pageCache Mar 29, 2026
@manugarg
manugarg merged commit 2eabeeb into main Mar 29, 2026
12 checks passed
@manugarg
manugarg deleted the fix/unbounded-map-growth branch March 29, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant