Ho Ngoc Hai
ec4a960aed
fix(web): add missing AuthState properties to auth test mocks
...
Login and register test files had incomplete mock stores missing
user, isAuthenticated, handleOAuthCallback, and other AuthState
properties, causing TypeScript errors.
Co-Authored-By: Paperclip <noreply@paperclip.ing >
2026-04-08 23:06:41 +07:00
Ho Ngoc Hai
ccb82fddf8
feat(cache): implement Redis caching for search & analytics hot paths
...
- Add TTL-specific cache durations: district stats (5min), market report (15min), heatmap (5min)
- Add Redis caching to GeoSearch handler with 60s TTL
- Add cache invalidation on listing.approved, listing.updated, listing.deactivated, listing.sold events
- Invalidate search, geo_search, and all analytics cache prefixes on listing state changes
- Update tests for new CacheService dependency in event handler and geo-search handler
Co-Authored-By: Paperclip <noreply@paperclip.ing >
2026-04-08 22:51:16 +07:00