feat: clean unused images only after 24hrs (local-only) (#5839)

* feat: clean unused images only after 24hrs (local-only)

* fix test

* make optional for now
This commit is contained in:
David Luzar 2022-11-06 19:41:14 +01:00 committed by GitHub
parent 938ce241ff
commit b91158198e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 48 additions and 8 deletions

View file

@ -5243,6 +5243,7 @@ class App extends React.Component<AppProps, AppState> {
id: fileId,
dataURL,
created: Date.now(),
lastRetrieved: Date.now(),
},
};
const cachedImageData = this.imageCache.get(fileId);