From 0c5736d9c9ca47d276508836c9f42d7f891b173e Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 24 Aug 2023 22:12:13 +1000 Subject: [PATCH] feat(ui): cache image metadata for 24 hours --- invokeai/frontend/web/src/services/api/endpoints/images.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/invokeai/frontend/web/src/services/api/endpoints/images.ts b/invokeai/frontend/web/src/services/api/endpoints/images.ts index 666091201f..62a9b6611e 100644 --- a/invokeai/frontend/web/src/services/api/endpoints/images.ts +++ b/invokeai/frontend/web/src/services/api/endpoints/images.ts @@ -127,6 +127,7 @@ export const imagesApi = api.injectEndpoints({ ], transformResponse: (response: Blob) => getMetadataAndWorkflowFromImageBlob(response), + keepUnusedDataFor: 86400, // 24 hours }), clearIntermediates: build.mutation({ query: () => ({ url: `images/clear-intermediates`, method: 'POST' }),