Caching issues
While developing an app, if you see an error or warning that stems from a cached function, it's probably related to the hashing procedure described in the Optimize performance with st.cache. In this article, we'll provide solutions to common issues encountered when using caching. If you have an issue that's not covered in this article, please let us know in the community forum.
How to debug a cached function that isn't executing
If you believe your cached function isn't executing even though its inputs are a "Cache miss", you can debug using st.write statements inside and outside of your function like this:
```python
@st.cache
def my_cached_func(a, b):
    st.write("Cache miss: my_cached_func(", a, ", ", b, ") ran")
    ...
st.write("Calling my_cached_func(", a, ", ", b, ")")
