albion/web
Заид Омар Медхат c4683ff5b0 Backend caching + AODP refetch cooldown
- In-memory TTL cache (server/src/cache.ts) with a get/set/clear surface
  that a Redis backend can replace later for multi-replica setups.
- Cache the expensive opportunities ranking (5 min), item detail/search
  (1 h), and per-item market prices (10 min). All keyed by request; each
  read endpoint takes a refresh/force bypass.
- Invalidate precisely on writes: price upserts, overrides, profile
  activate/update, economy config, and game-data reparse (full clear).
- AODP anti-spam: a price download now skips items priced within a
  configurable cooldown (default 15 min, Settings page) unless "force"
  is checked; the job reports how many fresh items it skipped.
- No client-side caching (per request); the browser still calls the API,
  but repeats are served from the server cache without recompute/AODP.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-23 05:09:38 +05:00
..
src Backend caching + AODP refetch cooldown 2026-08-23 05:09:38 +05:00
index.html Phase 1: scaffold + game data ingestion 2026-08-23 02:53:19 +05:00
package.json Phase 1: scaffold + game data ingestion 2026-08-23 02:53:19 +05:00
tsconfig.json Phase 1: scaffold + game data ingestion 2026-08-23 02:53:19 +05:00
vite.config.ts Phase 1: scaffold + game data ingestion 2026-08-23 02:53:19 +05:00