From a6c4dce440be8d8e82d45e245f749d41160a26a7 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Tue, 26 Mar 2019 11:13:52 +0300 Subject: [PATCH] fetch transaction period from env variables --- apps/explorer/lib/explorer/chain/transaction_count_cache.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/explorer/lib/explorer/chain/transaction_count_cache.ex b/apps/explorer/lib/explorer/chain/transaction_count_cache.ex index 809453338a..884e1c7d1f 100644 --- a/apps/explorer/lib/explorer/chain/transaction_count_cache.ex +++ b/apps/explorer/lib/explorer/chain/transaction_count_cache.ex @@ -24,7 +24,7 @@ defmodule Explorer.Chain.TransactionCountCache do end def init(params) do - cache_period = params[:cache_period] || @cache_period + cache_period = System.get_env("TRANSACTION_COUNT_CACHE_PERIOD") || params[:cache_period] || @cache_period current_value = params[:default_value] || @default_value name = params[:name]