Tweak camera/tag cache tags

This commit is contained in:
Sam Becker 2023-10-04 14:22:48 -05:00
parent 79fce5c975
commit 49b871ab13

8
src/cache/index.ts vendored
View File

@ -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);