an app to share curated trails sidetrail.app
atproto nextjs react rsc
50
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 16 lines 334 B view raw
1import { cacheTag, cacheLife } from "next/cache"; 2 3export function tagDid(did: string) { 4 cacheTag(`did:${did}`); 5 cacheLife("hours"); 6} 7 8export function tagHandle(handle: string) { 9 cacheTag(`handle:${handle}`); 10 cacheLife("hours"); 11} 12 13export function tagAvatar(did: string) { 14 cacheTag(`avatar:${did}`); 15 cacheLife("days"); 16}