Skip to content

Commit 24f2db0

Browse files
committed
CACHE: Bust earnings cache to show enriched data
- Update cache key version to v2025080602 - Ensure users see new enriched earnings data with page titles and usernames - Force refresh of cached earnings data
1 parent 9190780 commit 24f2db0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/api/earnings/user/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export async function GET(request: NextRequest) {
244244

245245
// 🚨 CRITICAL: Check cache first to prevent massive read costs
246246
// Add version to cache key to bust cache after earnings fix
247-
const cacheKey = `earnings:${userId}:v2025080601`;
247+
const cacheKey = `earnings:${userId}:v2025080602`;
248248
const cached = earningsCache.get(cacheKey);
249249
if (cached && (Date.now() - cached.timestamp) < EARNINGS_CACHE_TTL) {
250250
console.log(`🚀 COST OPTIMIZATION: Returning cached earnings for ${userId}`);

0 commit comments

Comments
 (0)