Skip to content

Commit

Permalink
update cache ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrickaby committed Sep 5, 2024
1 parent 589a2a3 commit 4ed8525
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function fetchToken(): Promise<RedditTokenResponse> {
},
next: {
tags: ['token'],
revalidate: config.cacheTtl
revalidate: 86400 // 24 hours.
}
})

Expand Down Expand Up @@ -117,7 +117,7 @@ export async function fetchSearchResults(
},
next: {
tags: [`search-${query}`],
revalidate: config.cacheTtl
revalidate: 86400 // 24 hours.
}
})

Expand Down

0 comments on commit 4ed8525

Please sign in to comment.