feat : update
This commit is contained in:
Vendored
+1
-13
@@ -3,11 +3,7 @@ import "server-only";
|
||||
import { cacheLife, cacheTag } from "next/cache";
|
||||
|
||||
import { getPublicPage, listPublicCharacters } from "@/lib/content/queries";
|
||||
import {
|
||||
getPublicGuide,
|
||||
getPublicTeamExport,
|
||||
listGuideCards,
|
||||
} from "@/lib/guides/queries";
|
||||
import { getPublicGuide, listGuideCards } from "@/lib/guides/queries";
|
||||
import {
|
||||
characterCacheTag,
|
||||
dataSourceCacheTag,
|
||||
@@ -61,11 +57,3 @@ export async function getCachedPublicGuide(slug: string) {
|
||||
if (result) cacheTag(pageCacheTag(result.id));
|
||||
return result;
|
||||
}
|
||||
|
||||
export async function getCachedPublicTeamExport(teamId: string) {
|
||||
"use cache: remote";
|
||||
cacheLife({ stale: 15, revalidate: 60, expire: 60 * 60 });
|
||||
const result = await getPublicTeamExport(teamId);
|
||||
if (result) cacheTag(pageCacheTag(result.guideId));
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user