Raise cache time for ReactQuery

This commit is contained in:
ajnart committed 2023-04-05 15:49:54 +09:00
1 parent 1930a4c1f6
commit 1a7ae434b7
1 file changed
+2
+2
View File
@@ -51,6 +51,8 @@ interface RssTileProps {
export const useGetRssFeeds = (feedUrls: string[], widgetId: string) =>
useQuery({
queryKey: ['rss-feeds', feedUrls],
// Cache the results for 24 hours
cacheTime: 1000 * 60 * 60 * 24,
queryFn: async () => {
const responses = await Promise.all(
feedUrls.map((feedUrl) =>