So I’m using
@st.cache decorator on a function that takes in one argument and later makes calls to another secondary function outside of that primary function whose input parameters are generated randomly every single time.
How can I make sure that regardless of what input parameters are sent to the second function, the first primary function gets cached and doesn’t run again? I want the primary function to be skipped so the second function isn’t even called. Turns out just using
@st.cache_data on the primary function isn’t doing the trick