This app has gone over its resource limits

So I went to check the source code, and you are indeed putting a lot of things into cache :slight_smile:

Can you try using a max_entries or TTL to limit the number of elements saved in the long term for functions where you think caching may be less necessary? We’re looking into writing up some more recommendations for this:

For example:

@st.cache(allow_output_mutation=True, max_entries=10, ttl=3600)
def recommendations(title):
    ...

Hope it helps,
Fanilo

1 Like