Skip to content

Commit

Permalink
Disable cache for zircuit (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillPamPam authored Nov 27, 2024
1 parent 99fe855 commit 377ae73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/kotlin/io/emeraldpay/dshackle/cache/CachesFactory.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 377ae73

Please sign in to comment.