From ec0b733c8ec25b454edc3c83c6b1b34eed353419 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 3 Aug 2023 01:19:12 -0700 Subject: [PATCH] cache 16 MiB responses we should really just get this from config --- web3_proxy/src/app/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3_proxy/src/app/mod.rs b/web3_proxy/src/app/mod.rs index 5f64eb19..10ae03be 100644 --- a/web3_proxy/src/app/mod.rs +++ b/web3_proxy/src/app/mod.rs @@ -1723,8 +1723,8 @@ impl Web3ProxyApp { let to_block_num = cache_key.to_block_num().copied(); let cache_jsonrpc_errors = cache_key.cache_errors(); - // don't cache anything larger than 2 MiB - let max_response_cache_bytes = 2 * (1024 ^ 2); // self.config.max_response_cache_bytes; + // don't cache anything larger than 16 MiB + let max_response_cache_bytes = 16 * (1024 ^ 2); // self.config.max_response_cache_bytes; // TODO: try to fetch out of s3