sckott / cchecksapi

CRAN checks API (DEFUNCT)
https://github.com/r-hub/cchecksbadges
MIT License
33 stars 1 forks source link

Consider Redis caching for some routes #32

Closed sckott closed 1 year ago

sckott commented 5 years ago

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 commented 5 years ago

just TTL it