Caching in shinyapps.io

,

I have a shiny app on shinyapps.io, and I would like to take advantage of caching to improve performance. I have added several instances of bindcache to various reactive expressions in my code, and the caching is working properly on my local machine. But the caching seems to not work as hoped on shinyapps.io. It works properly while the app is active, but once the app becomes idle due to inactivity and later "wakes up", the stored caches seem to have disappeared.

Any ideas on how to get cahcing working properly on shinyapps.io?

1 Like

When your app has gone idle, past a certain point it will be shut down, and waking your app will be like starting up a fresh app session. The only thing this will have in common with previous app sessions is that the same code has been used to start it. shinyapps.io only permanently stores your code; it does not offer permanent storage of memory states achieved in your app, nor temporary files (like disk caches). You can look into permanent storage options (S3? ) if your app needs such functionality.

1 Like

Thank you for the helpful info!