an app to share curated trails
sidetrail.app
atproto
nextjs
react
rsc
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}