Closed babolivier closed 2 years ago
Actually this is probably not good enough (we'll want something more clever than a simple dict, and we'll need a more clever way to handle big files), I'll rethink the caching policy for scan results and will open a new PR.
Builds on top of https://github.com/matrix-org/matrix-content-scanner-python/pull/17 to cache results and contents of files in a very basic in-memory cache so we don't spend our time fetching media from the homeserver.