Disable cache for zircuit (#598)
This commit is contained in:
@@ -91,6 +91,9 @@ open class CachesFactory(
|
|||||||
|
|
||||||
private fun initCache(chain: Chain): Caches {
|
private fun initCache(chain: Chain): Caches {
|
||||||
val caches = Caches.newBuilder()
|
val caches = Caches.newBuilder()
|
||||||
|
if (chain == Chain.ZIRCUIT__MAINNET || chain == Chain.ZIRCUIT__TESTNET) {
|
||||||
|
caches.setCacheEnabled(false)
|
||||||
|
}
|
||||||
redis?.let { redis ->
|
redis?.let { redis ->
|
||||||
caches.setBlockByHash(BlocksRedisCache(redis.reactive(), chain))
|
caches.setBlockByHash(BlocksRedisCache(redis.reactive(), chain))
|
||||||
caches.setTxByHash(TxRedisCache(redis.reactive(), chain))
|
caches.setTxByHash(TxRedisCache(redis.reactive(), chain))
|
||||||
|
|||||||
Reference in New Issue
Block a user