Version 0.57.0

Version 0.57.0

Highlights:

  • :timer_clock: Ability to set expiration options for @st.cache'ed functions by setting the max_entries and ttl arguments. See docs.
  • :up: Improved the machinery behind st.file_uploader, so itā€™s much more performant now! Also increased the default upload limit to 200MB (configurable via server.max_upload_size).
  • :lock: The server.address config option now binds the server to that address for added security.
  • :page_facing_up: Even more details added to error messages for @st.cache for easier debugging.
2 Likes

Sounds great, looking forward to trying the upgraded File Uploader!

I ran into the following problem after upgrading to 0.57.0:

AttributeError: ā€˜Serverā€™ object has no attribute ā€˜_session_infosā€™

But was able to fix it by updating to a newer SessionState gist: https://gist.github.com/tvst/036da038ab3e999a64497f42de966a92

Just posting this in case anyone else experiences the same issue.

2 Likes

Hey all :wave:,

A couple of interesting use cases for Ability to set expiration options for @st.cache 'ed functions by setting the max_entries and ttl arguments.:

  • If youā€™re serving your app and donā€™t want the cache to grow forever
  • If you have a cached function that reads live data from a URL, and should clear every few hours to fetch the latest data

@PeterT Thanks for the note and flagging this :pray:. Will pass the information on to the team!

2 Likes