Spaces:
Running
Running
Commit History
-
Fix news fetching and reliability regressions
Khanna, Videh Rakesh Rakesh21db26a
-
Add restart-safe SQLite caches for watchlist, universe, and top picks
Khanna, Videh Rakesh Rakesh +1: Claude Sonnet 5Watchlist prediction/price cards, the NSE universe, and Top Picks were all in-memory-only, so an app restart (or an HF Spaces container restart) forced every card back through a live Yahoo/LLM fetch before rendering anything. Persist each to SQLite so a restart bootstraps from the last completed result immediately, then refreshes stale timeframe cells progressively in the background. Top Picks startup prewarming becomes opt-in via TOP5_AUTO_PREWARM=1 to avoid an unconditional quota-heavy scan on boot; ticker search now serves the persisted universe cache immediately and refreshes it in the background instead of blocking on a remote Yahoo lookup. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>4c2ff6a