Disable cache for zircuit (#598)

This commit is contained in:
KirillPamPam
2024-11-27 14:28:16 +04:00
committed by GitHub
parent 99fe855736
commit 377ae73144

View File

@@ -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))