Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache GitHub API requests to avoid rate limit #58

Open
gitcommitshow opened this issue Oct 16, 2024 · 2 comments
Open

Cache GitHub API requests to avoid rate limit #58

gitcommitshow opened this issue Oct 16, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@gitcommitshow
Copy link
Owner

The contribution page is making a lot of gh api requests.
It can either be solved by using octokit/plugin-throttling, or by caching the requests.

@gitcommitshow gitcommitshow added the enhancement New feature or request label Oct 16, 2024
@gitcommitshow gitcommitshow self-assigned this Oct 16, 2024
@gitcommitshow
Copy link
Owner Author

gitcommitshow commented Oct 16, 2024

Do this one or #59 before releasing #57

@gitcommitshow
Copy link
Owner Author

gitcommitshow commented Oct 16, 2024

It looks like the throttling is enabled by default unless we turn it off. Reference - https://github.com/octokit/octokit.js?tab=readme-ov-file#octokit-api-client

The hooks can be used to enable caching

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant