PeopleForBikes / brokenspoke-analyzer

Run a BNA analysis locally.
https://peopleforbikes.github.io/brokenspoke-analyzer/
MIT License
5 stars 3 forks source link

Cache downloads #254

Open rgreinho opened 1 year ago

rgreinho commented 1 year ago

Feature request

Current Behavior

The files are downloaded every time we delete the prepared files or when we run the tests.

Expected Behavior

We should cache the downloads instead of re-downloading the files for nothing.

Possible Solution

rgreinho commented 1 year ago

When caching the downloads, we must also add the ability to disable the cache. The use case for that is that the cache may not always be necessary, for instance when using this tool in a Docker container.

rgreinho commented 1 year ago

Another idea would be to detect the standard cache directory per platform and use it:

rgreinho commented 1 year ago

It looks like PlatformDirs would come to the rescue 😃