Clear Shiny Cache for a given key?

Hi All,

I was wondering if there's an easy way to clear the cache for a given key via a button on the UI or any command? My app hits an API and sometimes the API is down and the app gets in a bad spot. I know I can improve the function to more gracefully handle errors in the API call, but was also just wondering if we can call a function to remove the bad cache?

A dumb way I was thinking was to have like a csv file stored that logs when keys get added to the cache and add the timestamp as a value to the cache key? Then I could have a button that updates the timestamp if I want to remove it? But that keeps caches around and seems hacky.

Thanks!

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.