import "server-only"; import { cacheLife, cacheTag } from "next/cache"; import { getActiveCatalog, getCatalogOptions } from "@/lib/guides/queries"; import { CATALOG_CACHE_TAG, GLOSSARY_CACHE_TAG } from "./tags"; export async function getCachedCatalogOptions() { "use cache: remote"; cacheLife({ stale: 0, revalidate: 300, expire: 3600 }); cacheTag(CATALOG_CACHE_TAG, GLOSSARY_CACHE_TAG); return getCatalogOptions(); } export async function getCachedActiveCatalog() { "use cache: remote"; cacheLife({ stale: 0, revalidate: 300, expire: 3600 }); cacheTag(CATALOG_CACHE_TAG, GLOSSARY_CACHE_TAG); return getActiveCatalog(); }