mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
Raise cache time for ReactQuery
This commit is contained in:
@@ -51,6 +51,8 @@ interface RssTileProps {
|
|||||||
export const useGetRssFeeds = (feedUrls: string[], widgetId: string) =>
|
export const useGetRssFeeds = (feedUrls: string[], widgetId: string) =>
|
||||||
useQuery({
|
useQuery({
|
||||||
queryKey: ['rss-feeds', feedUrls],
|
queryKey: ['rss-feeds', feedUrls],
|
||||||
|
// Cache the results for 24 hours
|
||||||
|
cacheTime: 1000 * 60 * 60 * 24,
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const responses = await Promise.all(
|
const responses = await Promise.all(
|
||||||
feedUrls.map((feedUrl) =>
|
feedUrls.map((feedUrl) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user