Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

Handle cache incompatibilities #20

Closed
2 tasks done
jkwill87 opened this issue May 18, 2018 · 0 comments
Closed
2 tasks done

Handle cache incompatibilities #20

jkwill87 opened this issue May 18, 2018 · 0 comments
Labels

Comments

@jkwill87
Copy link
Owner

jkwill87 commented May 18, 2018

Background

  • mapi makes use of requests-cache to cache API provider responses to reduce the number of API calls and increase performance
  • request-cache essentially just serializes request binary objects and stores them in a sqlite database
  • the format of these objects vary between versions of python so an effort is made to separate py2 and py3 databases so that they can coexist
  • unfortunately there are even incompatibilities between different versions of python packages which can surface when a user updates mapi's dependencies :(

Acceptance Criteria

  • Invalidate or delete cache on error
  • Retry request

Notes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant