diff --git a/content/library/api/api-reference.md b/content/library/api/api-reference.md index 099bbfefd..ec9530748 100644 --- a/content/library/api/api-reference.md +++ b/content/library/api/api-reference.md @@ -2058,7 +2058,7 @@ def init_model(): if st.checkbox("Clear All"): # Clear values from *all* cache_resource functions - st.cache_data.clear() + st.cache_resource.clear() ``` diff --git a/content/library/api/performance/performance.md b/content/library/api/performance/performance.md index 888265ed0..705782a30 100644 --- a/content/library/api/performance/performance.md +++ b/content/library/api/performance/performance.md @@ -80,7 +80,7 @@ def init_model(): if st.checkbox("Clear All"): # Clear values from *all* cache_resource functions - st.cache_data.clear() + st.cache_resource.clear() ```