Guide86.6K views1,825 votes1 reply1 comment3,595 following
Controlling Data Freshness in Streamlit with st.cache_data TTL
Avoid re-running expensive queries on every Streamlit interaction by using st.cache_data with a tuned TTL and hashable arguments.