Update address txs count cache: commit update date at the beginning

pull/3330/head
Victor Baranov 4 years ago
parent a7f94afb1a
commit 72007f0f34
  1. 2
      apps/explorer/lib/explorer/counters/address_transactions_counter.ex

@ -72,9 +72,9 @@ defmodule Explorer.Counters.AddressTransactionsCounter do
end
defp update_cache(address) do
put_into_cache("hash_#{address_hash_string}_#{@last_update_key}", current_time())
new_data = Chain.address_to_transaction_count(address)
address_hash_string = get_address_hash_string(address)
put_into_cache("hash_#{address_hash_string}_#{@last_update_key}", current_time())
put_into_cache("hash_#{address_hash_string}", new_data)
end

Loading…
Cancel
Save