/
githubmirror
/
Front-End-Checklist
Обзор
Документация
Войти
/
githubmirror
/
Front-End-Checklist
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
apps/web/lib/public-content-cache.ts
14 строк
319 B
David Dias
fix: reduce public content revalidation
18 июн 2026, 06:45
18 июн 2026, 06:45
48405aa
Код
Авторство
О чём код?
import { cacheLife } from 'next/cache' const PUBLIC_CONTENT_CACHE_LIFE = { stale: 86_400, revalidate: 604_800, expire: 31_536_000 } as const /** * Apply the long-lived cache profile used for static public content pages. */ export function cachePublicContent(): void { cacheLife(PUBLIC_CONTENT_CACHE_LIFE) }