From 1a46d50e0c6c6c23621e16b44d0c946c9ca9bb85 Mon Sep 17 00:00:00 2001 From: Rabbit Date: Thu, 22 Feb 2024 12:00:58 +0800 Subject: [PATCH] chore: update expiration time for display cells cache (#1635) --- app/controllers/api/v2/ckb_transactions_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/v2/ckb_transactions_controller.rb b/app/controllers/api/v2/ckb_transactions_controller.rb index eab1070ca..8c0ebe19b 100644 --- a/app/controllers/api/v2/ckb_transactions_controller.rb +++ b/app/controllers/api/v2/ckb_transactions_controller.rb @@ -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? @@ -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?