cchecksapi icon indicating copy to clipboard operation
cchecksapi copied to clipboard

Consider Redis caching for some routes

Open sckott opened this issue 7 years ago • 1 comments

in particular for

    "/pkgs (GET)",
    "/pkgs/:pkg_name:/history (GET)",
    "/pkghistory (GET)",
    "/maintainers (GET)",
    "/maintainers/:email: (GET)",

as these can have large payloads, and could be cached to minimize response time

Ideally: check if the cache should be deleted if there's been a recent cron job run resulting in new data for whatever the query is.

sckott avatar Nov 29 '18 17:11 sckott

just TTL it

sckott avatar Nov 29 '18 19:11 sckott