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

Increase caching time #71

Merged
merged 3 commits into from
Jul 30, 2024
Merged

Increase caching time #71

merged 3 commits into from
Jul 30, 2024

Conversation

anxolin
Copy link
Contributor

@anxolin anxolin commented Jul 29, 2024

This PR increases the caching time for values to 2min.

It also makes the specification of the caching time mandatory, and moves its const to the inversify configuration.

Test

To test, you can add some logs (you can apply this changes 6aedf88)

Then you can query the price of these tokens:

It might be handy to change the caching time to 10 seconds https://github.com/cowprotocol/bff/blob/increase-caching-time/apps/api/src/app/inversify.config.ts#L15

image

@anxolin anxolin marked this pull request as ready for review July 29, 2024 17:40
@anxolin anxolin requested a review from a team July 30, 2024 10:57
apps/api/src/app/inversify.config.ts Show resolved Hide resolved
apps/api/src/app/inversify.config.ts Show resolved Hide resolved
@anxolin anxolin merged commit cce10ef into main Jul 30, 2024
6 checks passed
@anxolin anxolin deleted the increase-caching-time branch July 30, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants