Skip to content

Commit

Permalink
chore: set default TTL to 5m
Browse files Browse the repository at this point in the history
  • Loading branch information
framp committed Sep 5, 2023
1 parent f1705a0 commit 6718e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/features/providers/github/commands/misc/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cache.on('expired', (key) => {
const fetchCached = async <T>(
cacheKey: string,
fetcher: () => Promise<T>,
ttl = 60 * 60 * 24
ttl = 60 * 5
) => {
let response: T
if (cache.has(cacheKey)) {
Expand Down

0 comments on commit 6718e9c

Please sign in to comment.