feat(ui): cache image metadata for 24 hours

This commit is contained in:
psychedelicious 2023-08-24 22:12:13 +10:00
parent 2d8f7d425c
commit 0c5736d9c9

View File

@ -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' }),