Skip to content

Commit 07ca3de

Browse files
feat(ui): remove keepUnusedDataFor for dynamic prompts
This query can have potentially large responses. Keeping them around for 24 hours essentially a hardcoded memory leak. Use the default for RTKQ of 60 seconds.
1 parent 10b124b commit 07ca3de

File tree

1 file changed

+0
-1
lines changed
  • invokeai/frontend/web/src/services/api/endpoints

1 file changed

+0
-1
lines changed

invokeai/frontend/web/src/services/api/endpoints/utilities.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export const utilitiesApi = api.injectEndpoints({
2121
body: arg,
2222
method: 'POST',
2323
}),
24-
keepUnusedDataFor: 86400, // 24 hours
2524
// We need to fetch this on reconnect bc the user may have changed the text field while
2625
// disconnected.
2726
providesTags: ['FetchOnReconnect'],

0 commit comments

Comments
 (0)