The streamlit app cache_data cleaning in Snowflake

Hey community,
I’ve faced an issue related to the different behavior of the data cache clearing in Snowflake Streamlit and classic Streamlit app.
The case is following. I have a data_editor in my app. After the changes saving I need to refresh data from the database. For the data loading I use the separate function.

@st.cached_data 
def  get_main_data():
         .......

According to the documentation there is a possibility to clean the cache for the particular function.
In my case it should be get_main_data.clear(). But seems that it doesn’t work but solution with a full cache refresh (st.cache_data.clear()) works as expected but in this case all the cache is cleaned which I’d like to avoid.

Has someone faced the similar issue. How has you deal with it?

Thank you in advance for your answers .