Using st.cache

Hi, I am getting this through this

I try to load a large dataset,

If I use st.cache on load function , it takes about 20 seconds at first, and about 10 seconds at second. But If I don’t use st.cache, it takes about 10 seconds at first and about 0.001 seconds at second time

using cache

  • 1st: 20s
  • 2nd: 10s

using non-cache

  • 1st: 10s
  • 2nd: 0.0001s

I install streamlit version 1.11.0
I think the results of the two uses have changed,
How do I solve this problems?

Hi @Sungsin_lee, thanks for posting! Can you share a code snippet so that we can reproduce the issue?