element-hq / matrix-content-scanner-python

A web service for scanning media hosted by a Matrix media repository
Apache License 2.0
13 stars 9 forks source link

Cache scan results #18

Closed babolivier closed 2 years ago

babolivier commented 2 years ago

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.

babolivier commented 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.