add 12 hour cache for list count queries

This commit is contained in:
jeffvli
2025-11-29 17:54:57 -08:00
parent 8611bb9755
commit 3f704f1f35
5 changed files with 12 additions and 0 deletions
@@ -21,6 +21,7 @@ export const songsQueries = {
},
listCount: (args: QueryHookArgs<ListCountQuery<SongListQuery>>) => {
return queryOptions({
gcTime: 1000 * 60 * 60 * 12,
queryFn: ({ signal }) => {
return api.controller.getSongListCount({
apiClientProps: { serverId: args.serverId, signal },
@@ -31,6 +32,7 @@ export const songsQueries = {
args.serverId,
Object.keys(args.query).length === 0 ? undefined : args.query,
),
staleTime: 1000 * 60 * 60 * 12,
...args.options,
});
},