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
[x] None
[ ] Requires data directory on base node to be deleted
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