mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
fix: make search revalidate & change cache to be 10 minutes (#6682)
* fix: make search revalidate & change cache to be 10 minutes * prepr
This commit is contained in:
@@ -884,7 +884,7 @@ async function search(requestParams: string) {
|
||||
const rawResults = await queryClient.fetchQuery({
|
||||
queryKey: ['search', 'v3', requestParams],
|
||||
queryFn: () =>
|
||||
get_search_results_v3(requestParams) as Promise<{
|
||||
get_search_results_v3(requestParams, 'must_revalidate') as Promise<{
|
||||
result: Labrinth.Search.v3.SearchResults & {
|
||||
hits: (Labrinth.Search.v3.ResultSearchProject & { installed?: boolean })[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user