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

chore: reduce off chain refresh time #882

Merged
merged 2 commits into from
Jan 26, 2022
Merged

Conversation

0xJuancito
Copy link
Contributor

Description

Deploying changes for the off chain wearables is taking a long time because results are cached for one day, making it difficult to check if what was deployed is correct, and also for testing and iterating. The goal of this PR is to reduce that time to a number that helps with these issues, while not impacting the catalyst performance.

Changes

  • Reduce the default time for off chain wearables cache refresh from 1 day to 15 minutes

@@ -23,7 +23,7 @@ export class OffChainWearablesManager {
}) {
this.definitions = new TimeRefreshedDataHolder(
() => OffChainWearablesManager.fetchOffChain(client, collections ?? DEFAULT_COLLECTIONS),
refreshTime ?? '1d'
refreshTime ?? '15m'
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
refreshTime ?? '15m'
refreshTime

And make refreshTime not optional parameter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@0xJuancito 0xJuancito merged commit ad29352 into main Jan 26, 2022
@0xJuancito 0xJuancito deleted the chore/reduce-off-chain-refresh branch January 26, 2022 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants