From 49b871ab13327d065ed537e7ae5ea54f7981d301 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Wed, 4 Oct 2023 14:22:48 -0500 Subject: [PATCH] Tweak camera/tag cache tags --- src/cache/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cache/index.ts b/src/cache/index.ts index d4f6666c..99c650a5 100644 --- a/src/cache/index.ts +++ b/src/cache/index.ts @@ -63,11 +63,11 @@ const getPhotosCacheTags = (options: GetPhotosOptions = {}) => { const getPhotoCacheTag = (photoId: string) => `photo-${photoId}`; -const getPhotoCameraCountTag = ({ make, model }: Camera) => - `${TAG_PHOTOS_COUNT}-${createCameraKey(make, model)}`; - const getPhotoTagCountTag = (tag: string) => - `${TAG_PHOTOS_COUNT}-${tag}`; + `${TAG_PHOTOS_COUNT}-${TAG_TAGS}-${tag}`; + +const getPhotoCameraCountTag = ({ make, model }: Camera) => + `${TAG_PHOTOS_COUNT}-${TAG_CAMERAS}-${createCameraKey(make, model)}`; export const revalidatePhotosTag = () => revalidateTag(TAG_PHOTOS);