Skip to content

chore(cache): bump all sub-5min cache TTLs and polling intervals#626

Merged
koala73 merged 1 commit into
mainfrom
chore/bump-cache-ttls
Mar 1, 2026
Merged

chore(cache): bump all sub-5min cache TTLs and polling intervals#626
koala73 merged 1 commit into
mainfrom
chore/bump-cache-ttls

Conversation

@koala73

@koala73 koala73 commented Mar 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Audit and raise every cache/poll interval under 5 min across 31 files to reduce upstream API pressure, Vercel function invocations, and paid API quota usage
  • Aligns CDN edge tiers with new server-side TTLs (market RPCs fastmedium, infra/seismology fastslow)

Frontend Polling

Service Before After
markets 4 min 8 min
crypto 4 min 8 min
predictions 5 min 10 min
natural 5 min 1 hr
cableHealth 5 min 2 hr
oref-alerts 10s 2 min
maritime snapshot 30s 5 min
IntelligenceGapBadge 1 min 3 min

Circuit Breakers (client-side)

Breaker Before After
PizzINT 2 min 30 min
Flight Delays 5 min 20 min
Seismology, Weather, Outages, Statuses, Wildfires 5 min 30 min
Military Vessels/Flights, GDACS, Maritime, Polymarket, GDELT 5 min 10 min
Chokepoint Status 5 min 20 min

Server Redis Cache

Handler Before After
market-quotes 2 min 8 min
stablecoins (in-mem/Redis) 2/5 min 8/10 min
vessel-snapshot 10s 5 min
earthquakes 5 min 30 min
sector, predictions, crypto, commodities 5 min 10 min
outages, service-statuses 5 min 30 min
macro-signals, chokepoints 5 min 15 min
aviation sim fallback 5 min 15 min

Test plan

  • Verify tsc --noEmit passes (confirmed pre-push)
  • Spot-check market quotes panel still refreshes correctly
  • Verify earthquake markers appear on map
  • Confirm maritime vessel tracking updates at 5 min interval

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@vercel

vercel Bot commented Mar 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Ready Ready Preview, Comment Mar 1, 2026 1:20am
worldmonitor-finance Ready Ready Preview, Comment Mar 1, 2026 1:20am
worldmonitor-happy Ready Ready Preview, Comment Mar 1, 2026 1:20am
worldmonitor-startup Ready Ready Preview, Comment Mar 1, 2026 1:20am

Request Review

Audit and raise every cache/poll under 5 min to reduce upstream API
pressure and Vercel function invocations across 31 files:

Frontend polling: markets 4→8min, crypto 4→8min, predictions 5→10min,
natural 5→1hr, cableHealth 5→2hr, oref 10s→2min, maritime 30s→5min,
IntelligenceGapBadge 1→3min.

Circuit breakers: PizzINT 2→30min, aviation 5→20min, seismology/weather/
outages/statuses/wildfires 5→30min, military-vessels/flights/GDACS/
maritime/polymarket/GDELT 5→10min, chokepoint 5→20min.

Server Redis: market-quotes 2→8min, stablecoins 2→8min/5→10min,
vessel-snapshot 10s→5min, earthquakes 5→30min, sector 5→10min,
predictions/crypto/commodities 5→10min, outages/statuses 5→30min,
macro-signals/chokepoints 5→15min, aviation-sim 5→15min.

CDN edge: market RPCs fast→medium, infra/seismology fast→slow.
@koala73
koala73 force-pushed the chore/bump-cache-ttls branch from 924808b to d52a68f Compare March 1, 2026 01:19
@koala73
koala73 merged commit 5111ab9 into main Mar 1, 2026
2 of 6 checks passed
koala73 added a commit that referenced this pull request Mar 1, 2026
Audit and raise every cache/poll under 5 min to reduce upstream API
pressure and Vercel function invocations across 31 files:

Frontend polling: markets 4→8min, crypto 4→8min, predictions 5→10min,
natural 5→1hr, cableHealth 5→2hr, oref 10s→2min, maritime 30s→5min,
IntelligenceGapBadge 1→3min.

Circuit breakers: PizzINT 2→30min, aviation 5→20min, seismology/weather/
outages/statuses/wildfires 5→30min, military-vessels/flights/GDACS/
maritime/polymarket/GDELT 5→10min, chokepoint 5→20min.

Server Redis: market-quotes 2→8min, stablecoins 2→8min/5→10min,
vessel-snapshot 10s→5min, earthquakes 5→30min, sector 5→10min,
predictions/crypto/commodities 5→10min, outages/statuses 5→30min,
macro-signals/chokepoints 5→15min, aviation-sim 5→15min.

CDN edge: market RPCs fast→medium, infra/seismology fast→slow.
matthewvecchione1-ops pushed a commit to matthewvecchione1-ops/worldmonitor that referenced this pull request Mar 4, 2026
…la73#626)

Audit and raise every cache/poll under 5 min to reduce upstream API
pressure and Vercel function invocations across 31 files:

Frontend polling: markets 4→8min, crypto 4→8min, predictions 5→10min,
natural 5→1hr, cableHealth 5→2hr, oref 10s→2min, maritime 30s→5min,
IntelligenceGapBadge 1→3min.

Circuit breakers: PizzINT 2→30min, aviation 5→20min, seismology/weather/
outages/statuses/wildfires 5→30min, military-vessels/flights/GDACS/
maritime/polymarket/GDELT 5→10min, chokepoint 5→20min.

Server Redis: market-quotes 2→8min, stablecoins 2→8min/5→10min,
vessel-snapshot 10s→5min, earthquakes 5→30min, sector 5→10min,
predictions/crypto/commodities 5→10min, outages/statuses 5→30min,
macro-signals/chokepoints 5→15min, aviation-sim 5→15min.

CDN edge: market RPCs fast→medium, infra/seismology fast→slow.
@koala73
koala73 deleted the chore/bump-cache-ttls branch March 4, 2026 19:40
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