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:
Prospector
2026-07-10 16:58:45 +00:00
committed by GitHub
parent 2434f0c45b
commit af8daca059
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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 })[]
}