mirror of
https://github.com/jnsahaj/tweakcn.git
synced 2026-08-28 23:02:07 +08:00
6bc66ba071
- Add like_count column to community_theme table with backfill migration - Update toggleLikeTheme to atomically increment/decrement instead of COUNT(*) - Remove expensive GROUP BY subquery from getCommunityThemes and getCommunityDataForTheme - Wrap read queries with unstable_cache (60s themes, 300s tag counts) - Add revalidateTag calls to all write operations for cache invalidation - Increase React Query staleTime (themes 2m→5m, tags 5m→15m, published 5m→10m) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>