Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Add option to cache the config #32

@tcbyrd

Description

@tcbyrd

Currently we make a call to repo.getContents() for every request to check the configuration. This can have a negative effect on API rate limits since an app has to use up a request to get the contents of a file that doesn't change very often. We should provide a way in this plugin to cache the config, and listen for webhook events that change the file to ensure it's always up to date what the state of the file in the repo. To help limit issues where the app may have missed that webhook event, we can limit the age of the cache to 30/60 minutes so that it regularly goes back to the source to get a fresh copy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions