feat(image-export) : capture guide sections in browser
This commit is contained in:
Vendored
-18
@@ -4,10 +4,8 @@ import { cacheLife, cacheTag } from "next/cache";
|
||||
|
||||
import { getPublicPage, listPublicCharacters } from "@/lib/content/queries";
|
||||
import {
|
||||
getPublicArtifactExport,
|
||||
getPublicGuide,
|
||||
getPublicTeamExport,
|
||||
getPublicWeaponExport,
|
||||
listGuideCards,
|
||||
} from "@/lib/guides/queries";
|
||||
import {
|
||||
@@ -71,19 +69,3 @@ export async function getCachedPublicTeamExport(teamId: string) {
|
||||
if (result) cacheTag(pageCacheTag(result.guideId));
|
||||
return result;
|
||||
}
|
||||
|
||||
export async function getCachedPublicWeaponExport(guideId: string) {
|
||||
"use cache: remote";
|
||||
cacheLife({ stale: 15, revalidate: 60, expire: 60 * 60 });
|
||||
const result = await getPublicWeaponExport(guideId);
|
||||
cacheTag(pageCacheTag(guideId));
|
||||
return result;
|
||||
}
|
||||
|
||||
export async function getCachedPublicArtifactExport(guideId: string) {
|
||||
"use cache: remote";
|
||||
cacheLife({ stale: 15, revalidate: 60, expire: 60 * 60 });
|
||||
const result = await getPublicArtifactExport(guideId);
|
||||
cacheTag(pageCacheTag(guideId));
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user