diff --git a/src/main/kotlin/io/emeraldpay/dshackle/cache/CachesFactory.kt b/src/main/kotlin/io/emeraldpay/dshackle/cache/CachesFactory.kt index 81ff29419..6e4569a17 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/cache/CachesFactory.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/cache/CachesFactory.kt @@ -91,6 +91,9 @@ open class CachesFactory( private fun initCache(chain: Chain): Caches { val caches = Caches.newBuilder() + if (chain == Chain.ZIRCUIT__MAINNET || chain == Chain.ZIRCUIT__TESTNET) { + caches.setCacheEnabled(false) + } redis?.let { redis -> caches.setBlockByHash(BlocksRedisCache(redis.reactive(), chain)) caches.setTxByHash(TxRedisCache(redis.reactive(), chain))