Skip to content

Commit 1d074c2

Browse files
committed
fix cache keys
1 parent 107af11 commit 1d074c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/fetchers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function getSiteData(domain: string) {
1515
include: { user: true },
1616
});
1717
},
18-
[],
18+
[`${domain}-metadata`],
1919
{
2020
revalidate: 900,
2121
tags: [`${domain}-metadata`],
@@ -50,7 +50,7 @@ export async function getPostsForSite(domain: string) {
5050
],
5151
});
5252
},
53-
[],
53+
[`${domain}-posts`],
5454
{
5555
revalidate: 900,
5656
tags: [`${domain}-posts`],
@@ -109,7 +109,7 @@ export async function getPostData(domain: string, slug: string) {
109109
adjacentPosts,
110110
};
111111
},
112-
[],
112+
[`${domain}-${slug}`],
113113
{
114114
revalidate: 900,
115115
tags: [`${domain}-${slug}`],

0 commit comments

Comments
 (0)