kbase / file_cache_server

Cache server for files that take longer to generate than to download.
MIT License
2 stars 2 forks source link

Cache tokens #22

Open MrCreosote opened 1 year ago

MrCreosote commented 1 year ago

Currently the cache service appears to make a new request to the auth service for every request: https://github.com/kbase/file_cache_server/blob/develop/src/caching_service/authorization/service_token.py

Instead, the service should cache tokens for a time period equal to the cachefor field in the response (typically 5m)