Skip to content

Commit

Permalink
Define commonDictionaries cache to 12 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Jul 24, 2023
1 parent bb0dcf1 commit ba34b0a
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Map/hooks/usePopupResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const usePopupResult = (
['commonDictionaries', language],
() => getCommonDictionaries(language),
{
staleTime: ONE_DAY,
staleTime: ONE_DAY / 2,
},
);

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/pages/details/useDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const useDetails = (
await router.push(routes.HOME);
}
},
staleTime: ONE_DAY,
staleTime: ONE_DAY / 2,
},
);

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/pages/home/useHome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const useHome = (): UseHome => {
['commonDictionaries', language],
() => getCommonDictionaries(language),
{
staleTime: ONE_DAY,
staleTime: ONE_DAY / 2,
},
);

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/pages/search/hooks/useCounter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const useCounter = ({ language }: Args): CountResult => {
['commonDictionaries', language],
() => getCommonDictionaries(language),
{
staleTime: ONE_DAY,
staleTime: ONE_DAY / 2,
},
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const useTrekResults = (
['commonDictionaries', language],
() => getCommonDictionaries(language),
{
staleTime: ONE_DAY,
staleTime: ONE_DAY / 2,
},
);

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/pages/site/useOutdoorCourse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const useOutdoorCourse = (
await router.push(routes.HOME);
}
},
staleTime: ONE_DAY,
staleTime: ONE_DAY / 2,
},
);

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/pages/site/useOutdoorSite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const useOutdoorSite = (outdoorSiteUrl: string | string[] | undefined, la
await router.push(routes.HOME);
}
},
staleTime: ONE_DAY,
staleTime: ONE_DAY / 2,
},
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const useTouristicContent = (
await router.push(routes.HOME);
}
},
staleTime: ONE_DAY,
staleTime: ONE_DAY / 2,
},
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const useTouristicEvent = (
await router.push(routes.HOME);
}
},
staleTime: ONE_DAY,
staleTime: ONE_DAY / 2,
},
);

Expand Down

0 comments on commit ba34b0a

Please sign in to comment.