InNoobWeTrust commited on
Commit
8d88383
1 Parent(s): 1609dbf

fix: set cache expiration

Browse files
Files changed (1) hide show
  1. df.py +1 -1
df.py CHANGED
@@ -110,7 +110,7 @@ def fetch_asset_price(ticker: str, start_time=None):
110
 
111
  return price
112
 
113
- @st.cache_data
114
  def fetch(asset):
115
  if asset == "BTC":
116
  df = fetch_btc_etf()
 
110
 
111
  return price
112
 
113
+ @st.cache_data(ttl='30m')
114
  def fetch(asset):
115
  if asset == "BTC":
116
  df = fetch_btc_etf()