Remove revalidate tags from / and /grid
This commit is contained in:
parent
0d92ff0204
commit
3d7b2adef7
@ -13,8 +13,6 @@ import { getPhotoSidebarDataCached } from '@/photo/data';
|
|||||||
import { MorePhotosGrid } from '@/photo/MorePhotosGrid';
|
import { MorePhotosGrid } from '@/photo/MorePhotosGrid';
|
||||||
import { Suspense } from 'react';
|
import { Suspense } from 'react';
|
||||||
|
|
||||||
export const revalidate = 3600;
|
|
||||||
|
|
||||||
export async function generateMetadata(): Promise<Metadata> {
|
export async function generateMetadata(): Promise<Metadata> {
|
||||||
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG });
|
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG });
|
||||||
return generateOgImageMetaForPhotos(photos);
|
return generateOgImageMetaForPhotos(photos);
|
||||||
|
|||||||
@ -10,8 +10,6 @@ import PhotosLarge from '@/photo/PhotosLarge';
|
|||||||
import { Suspense } from 'react';
|
import { Suspense } from 'react';
|
||||||
import { MorePhotosRoot } from '@/photo/MorePhotosRoot';
|
import { MorePhotosRoot } from '@/photo/MorePhotosRoot';
|
||||||
|
|
||||||
export const revalidate = 3600;
|
|
||||||
|
|
||||||
export async function generateMetadata(): Promise<Metadata> {
|
export async function generateMetadata(): Promise<Metadata> {
|
||||||
// Make homepage queries resilient to error on first time setup
|
// Make homepage queries resilient to error on first time setup
|
||||||
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG })
|
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG })
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user