You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add caching layer with ISR and unstable_cache for improved performance (#1441)
* feat: add ISR configuration to page files
Add revalidate exports to enable Incremental Static Regeneration:
- Homepage and events: 12 hours (43200s)
- Podcast and members pages: 24 hours (86400s)
* feat: add unstable_cache to events data fetching
Wrap getEvents with unstable_cache for 12-hour caching with 'events' tag.
* feat: add unstable_cache to sponsors data fetching
Wrap getSponsors with unstable_cache for 24-hour caching with 'sponsors' tag.
Also fix null safety issue when sponsor.tier is null.
* feat: add unstable_cache to podcast data fetching
Wrap getEpisodes, getEpisode, and getTranscript with unstable_cache
for 24-hour caching with 'podcast' tag.
* feat: add unstable_cache to members data fetching
Wrap getMembers with unstable_cache for 24-hour caching with 'members' tag.
* feat: add tag-based revalidation to cache route
Support revalidating by cache tag in addition to path:
- /_cache?tag=events - invalidates events cache
- /_cache?tag=sponsors - invalidates sponsors cache
- /_cache?tag=podcast - invalidates podcast cache
- /_cache?tag=members - invalidates members cache
* Add path type parameter
* update type
* add revalidate to a few more
---------
Co-authored-by: Dan Ott <[email protected]>
0 commit comments