tari-project / tari-explorer

0 stars 5 forks source link

feat: add cache settings #24

Closed Cifko closed 9 months ago

Cifko commented 9 months ago

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

leet4tari commented 9 months ago

utACK