Skip to content

Commit 64629bd

Browse files
ldorigosnehankekre
andauthored
Fix example for cache_resource.clear() (#800)
* Fix example for cache_resource.clear() * Typo: cache_data.clear() -> cache_resource.clear() --------- Co-authored-by: Snehan Kekre <[email protected]>
1 parent 4de63ab commit 64629bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/library/api/api-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2058,7 +2058,7 @@ def init_model():
20582058

20592059
if st.checkbox("Clear All"):
20602060
# Clear values from *all* cache_resource functions
2061-
st.cache_data.clear()
2061+
st.cache_resource.clear()
20622062
```
20632063

20642064
</RefCard>

content/library/api/performance/performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def init_model():
8080

8181
if st.checkbox("Clear All"):
8282
# Clear values from *all* cache_resource functions
83-
st.cache_data.clear()
83+
st.cache_resource.clear()
8484
```
8585

8686
</RefCard>

0 commit comments

Comments
 (0)