mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +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) =>
|
||||
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) =>
|
||||
|
||||
Reference in New Issue
Block a user