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

feat(locksmith): adding a cache for the defilama API results #13343

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

julien51
Copy link
Member

Description

I noticed a few errors in Sentry that /i suspect are related to us bumping into a rate limit.
Caching results for 5 minutes should help a lot (and also make things a bit faster!)

Issues

Fixes https://unlock-protocol.sentry.io/issues/4597591358/?project=5685514&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=7d&stream_index=6

Checklist:

  • 1 PR, 1 purpose: my Pull Request applies to a single purpose
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the docs to reflect my changes if applicable
  • I have added tests (and stories for frontend components) that prove my fix is effective or that my feature works
  • I have performed a self-review of my own code
  • If my code involves visual changes, I am adding applicable screenshots to this thread

Release Note Draft Snippet

@@ -30,7 +30,7 @@ const crontabProduction = `
*/5 * * * * addHookJobs
0 0 * * * notifyExpiringKeysForNetwork
0 0 * * * notifyExpiredKeysForNetwork
0 */6 * * * checkBalances
30 */6 * * * checkBalances
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed this cronjob syntax :/

Copy link
Member

@clemsos clemsos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg

@julien51 julien51 merged commit cc524d8 into master Feb 14, 2024
12 checks passed
@julien51 julien51 deleted the defilama-api-cache branch February 14, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants