mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): cache image metadata for 24 hours
This commit is contained in:
parent
2d8f7d425c
commit
0c5736d9c9
@ -127,6 +127,7 @@ export const imagesApi = api.injectEndpoints({
|
||||
],
|
||||
transformResponse: (response: Blob) =>
|
||||
getMetadataAndWorkflowFromImageBlob(response),
|
||||
keepUnusedDataFor: 86400, // 24 hours
|
||||
}),
|
||||
clearIntermediates: build.mutation<number, void>({
|
||||
query: () => ({ url: `images/clear-intermediates`, method: 'POST' }),
|
||||
|
Loading…
Reference in New Issue
Block a user