Even when the cache limit set, the app still went over its resource limits

As mentioned in the title, even when I set the cache limit (parameters being max_entries=10, ttl=3600), Streamlit Sharing still gave errors regarding the limited resources. From time to time, I’ll get this error, and I’ll have to reboot the app.

To my knowledge, setting the max_entries means restricting my cached data to only ten entries, and the old ones should be removed and replaced by the latest one. But it didn’t seem like it was working out so well.

Am I missing something important here :’( If so, is there any suggestions on the implementation?

Thank you in advance!

P.S. It might be a little hard to understand the app since it’s in Chinese. Basically what this app does is it lets users search through the available classes listed in my Uni.

1 Like