diff --git a/CHANGELOG.md b/CHANGELOG.md index 1591ffbd0e..534d006bef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### Fixes +- [#6940](https://github.com/blockscout/blockscout/pull/6940) - Reduce ttl_check_interval for cache module - [#6912](https://github.com/blockscout/blockscout/pull/6912) - Docker compose fix exposed ports - [#6913](https://github.com/blockscout/blockscout/pull/6913) - Fix an error occurred when decoding base64 encoded json - [#6911](https://github.com/blockscout/blockscout/pull/6911) - Fix bugs in verification API v2 diff --git a/apps/explorer/lib/explorer/chain/cache/block.ex b/apps/explorer/lib/explorer/chain/cache/block.ex index 7aaeb9ba80..3f97790745 100644 --- a/apps/explorer/lib/explorer/chain/cache/block.ex +++ b/apps/explorer/lib/explorer/chain/cache/block.ex @@ -13,7 +13,7 @@ defmodule Explorer.Chain.Cache.Block do key: :count, key: :async_task, global_ttl: Application.get_env(:explorer, __MODULE__)[:global_ttl], - ttl_check_interval: :timer.minutes(15), + ttl_check_interval: :timer.seconds(1), callback: &async_task_on_deletion(&1) require Logger diff --git a/apps/explorer/lib/explorer/chain/cache/gas_price_oracle.ex b/apps/explorer/lib/explorer/chain/cache/gas_price_oracle.ex index 4cdd4038e8..2061e30dd3 100644 --- a/apps/explorer/lib/explorer/chain/cache/gas_price_oracle.ex +++ b/apps/explorer/lib/explorer/chain/cache/gas_price_oracle.ex @@ -42,7 +42,7 @@ defmodule Explorer.Chain.Cache.GasPriceOracle do key: :gas_prices, key: :async_task, global_ttl: Application.get_env(:explorer, __MODULE__)[:global_ttl], - ttl_check_interval: :timer.minutes(5), + ttl_check_interval: :timer.seconds(1), callback: &async_task_on_deletion(&1) def get_average_gas_price(num_of_blocks, safelow_percentile, average_percentile, fast_percentile) do diff --git a/apps/explorer/lib/explorer/chain/cache/gas_usage.ex b/apps/explorer/lib/explorer/chain/cache/gas_usage.ex index 91e54aada1..9d2c748b75 100644 --- a/apps/explorer/lib/explorer/chain/cache/gas_usage.ex +++ b/apps/explorer/lib/explorer/chain/cache/gas_usage.ex @@ -19,7 +19,7 @@ defmodule Explorer.Chain.Cache.GasUsage do key: :sum, key: :async_task, global_ttl: cache_period(), - ttl_check_interval: :timer.minutes(15), + ttl_check_interval: :timer.seconds(1), callback: &async_task_on_deletion(&1) alias Explorer.Chain.Transaction diff --git a/apps/explorer/lib/explorer/chain/cache/transaction.ex b/apps/explorer/lib/explorer/chain/cache/transaction.ex index beb5a59684..937dd3aaa3 100644 --- a/apps/explorer/lib/explorer/chain/cache/transaction.ex +++ b/apps/explorer/lib/explorer/chain/cache/transaction.ex @@ -8,7 +8,7 @@ defmodule Explorer.Chain.Cache.Transaction do key: :count, key: :async_task, global_ttl: Application.get_env(:explorer, __MODULE__)[:global_ttl], - ttl_check_interval: :timer.minutes(15), + ttl_check_interval: :timer.seconds(1), callback: &async_task_on_deletion(&1) require Logger