Skip to content

Commit

Permalink
chore: maybe fixes caching issues
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 committed Jun 7, 2024
1 parent d1e13f9 commit c3f79ce
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/dapp/src/hooks/useQuota.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ export const useQuota = ({
return data;
},
enabled,
refetchInterval: 1000 * 120, // Refetch every 2 minutes
refetchInterval: 120000, // Refetch every 2 minutes
});
};
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const getMinimalProfileFromAddress = async (
identity: address,
},
}),
next: { revalidate: 24 * 60 * 60 }, // Cache for 1 day
next: { revalidate: 86400 }, // Cache for 1 day
});

// Check if request was successful
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const getMinimalProfileInfoByPlatform = async (
: identity,
},
}),
next: { revalidate: 24 * 60 * 60 }, // Cache for 1 day
next: { revalidate: 86400 }, // Cache for 1 day
});

// Check if request was successful
Expand Down
2 changes: 1 addition & 1 deletion packages/dapp/src/lib/airstack/getProfileInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const getProfileInfo = async (
query: GetProfileInfoDocument,
variables,
}),
next: { revalidate: 24 * 60 * 60 }, // Cache for 1 day
next: { revalidate: 86400 }, // Cache for 1 day
});

// Check if request was successful
Expand Down
2 changes: 1 addition & 1 deletion packages/dapp/src/lib/ees/getTopEndorsersAndDonators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const getTopEndorsersAndDonators = async ({
},
}),
// Cache for 1 minute
next: { revalidate: 60 },
next: { revalidate: 86400 },
});

// Check if request was successful
Expand Down

0 comments on commit c3f79ce

Please sign in to comment.