Skip to content

Commit

Permalink
chore: update expiration time for display cells cache (#1635)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitz authored Feb 22, 2024
1 parent 589b80f commit 1a46d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/api/v2/ckb_transactions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def details
end

def display_inputs
expires_in 1.hour, public: true, must_revalidate: true
expires_in 15.seconds, public: true, must_revalidate: true

ckb_transaction = CkbTransaction.find_by(tx_hash: params[:id])
head :not_found and return if ckb_transaction.blank?
Expand All @@ -41,7 +41,7 @@ def display_inputs
end

def display_outputs
expires_in 1.hour, public: true, must_revalidate: true
expires_in 15.seconds, public: true, must_revalidate: true

ckb_transaction = CkbTransaction.find_by(tx_hash: params[:id])
head :not_found and return if ckb_transaction.blank?
Expand Down

0 comments on commit 1a46d50

Please sign in to comment.