Area: Caching
Priority: P2 — Medium
Description
Public profile pages are read-heavy but rarely change. Cache them for 5 minutes to reduce Postgres load by 90%+ under normal traffic.
Acceptance Criteria
Technical Notes
- Use cache-manager with redis store
- Cache key:
profile:<username>:tipping-info and profile:<username>
Description
Public profile pages are read-heavy but rarely change. Cache them for 5 minutes to reduce Postgres load by 90%+ under normal traffic.
Acceptance Criteria
@UseInterceptors(CacheInterceptor)+@CacheTTL(300)toGET /profiles/:usernameandGET /profiles/:username/tipping-infodocs/CACHING.mdTechnical Notes
profile:<username>:tipping-infoandprofile:<username>