Can @st.cache be used in functions from a file that’s going to be imported?
from utils import func
text = func()
Will cache work as expected if only the functions in
utils.py have the cache decorators?
Thanks, but this question is about how to use when importing from other files rather than the cache data/resource
I managed to figure it out by experimenting though. I can indeed use the decorator on functions in other files that I want to import
I have the same question, whether we have to define function in the same pages?