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

Gradually increase ttl for block count cache #10110

Closed
vbaranov opened this issue May 22, 2024 · 0 comments · Fixed by #10109
Closed

Gradually increase ttl for block count cache #10110

vbaranov opened this issue May 22, 2024 · 0 comments · Fixed by #10109
Assignees

Comments

@vbaranov
Copy link
Member

Currently, block count cache ttl is a constant, defined by runtime environment variable. And the default value is relatively big: 2 hours.

On the newly spinned up instance of Blocskcout, it may cause the issue, that indexing progress banner may still persist, even if the chain already indexed in the Blockscout explorer.

The suggestion is to make ttl dynamically changed based on the number of blocks in the DB.

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 a pull request may close this issue.

1 participant