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: add cache settings #24

Merged
merged 1 commit into from
Feb 26, 2024
Merged

feat: add cache settings #24

merged 1 commit into from
Feb 26, 2024

Conversation

Cifko
Copy link
Contributor

@Cifko Cifko commented Feb 26, 2024

Description

Add cache settings. 2 minutes on blocks, and other searches, 0 on mempool. We can discuss the cache length. Once we go live, we can cache the block after some time indefinitely (the ones that are never going to be reorg again).

Motivation and Context

How Has This Been Tested?

Running tari-explorer locally.

What process can a PR reviewer use to test or verify this change?

Run locally to make sure that the response headers are properly set.

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

@leet4tari
Copy link
Contributor

utACK

@leet4tari leet4tari merged commit c27acca into tari-project:main Feb 26, 2024
1 check passed
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.

3 participants