Skip to content

Cache API Responses #24

@Suprnova

Description

@Suprnova

We should cache specific responses from the API for a certain amount of time. Any request that could be identical to another request made indexing another user should be saved in a dictionary, a key of the URL in question, and a value of an object that contains the response itself and a DateTime of when it expires. (Maybe a day?) That way, we won't have to go through SRC's cache and use up our rate limit.

Responses can be pretty big, maybe we should trim them down to the essentials that we would need for any request, and throwing out the ones we never use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiRequests to SRC's APIbackendThe backend code for the sitegood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions