This commit is contained in:
pa
2026-03-11 02:35:29 +09:00
parent 0234abcca3
commit 14d73b1532
2 changed files with 7 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
const SECOND = 1000;
const MINUTE = 60 * SECOND;
export const entityQueryPolicies = Object.freeze({
user: Object.freeze({
@@ -20,8 +21,8 @@ export const entityQueryPolicies = Object.freeze({
refetchOnWindowFocus: false
}),
group: Object.freeze({
staleTime: 60 * SECOND,
gcTime: 300 * SECOND,
staleTime: 5 * MINUTE,
gcTime: 30 * MINUTE,
retry: 1,
refetchOnWindowFocus: false
}),
@@ -62,8 +63,8 @@ export const entityQueryPolicies = Object.freeze({
refetchOnWindowFocus: false
}),
fileAnalysis: Object.freeze({
staleTime: 120 * SECOND,
gcTime: 600 * SECOND,
staleTime: 10 * MINUTE,
gcTime: 60 * MINUTE,
retry: 1,
refetchOnWindowFocus: false
}),

View File

@@ -98,6 +98,7 @@
import { convertFileUrlToImageUrl, parseLocation } from '../../../shared/utils';
import { useInviteChecks } from '../../../composables/useInviteChecks';
import { useAppearanceSettingsStore, useGroupStore, useLaunchStore } from '../../../stores';
import { showGroupDialog } from '../../../coordinators/groupCoordinator';
import { instanceRequest } from '../../../api';
import BackToTop from '../../../components/BackToTop.vue';
@@ -107,7 +108,7 @@
const launchStore = useLaunchStore();
const { isAgeGatedInstancesVisible } = storeToRefs(useAppearanceSettingsStore());
const { showGroupDialog, sortGroupInstancesByInGame } = useGroupStore();
const { sortGroupInstancesByInGame } = useGroupStore();
const { groupInstances } = storeToRefs(useGroupStore());
const { checkCanInviteSelf } = useInviteChecks();