err-backend-slackv3 icon indicating copy to clipboard operation
err-backend-slackv3 copied to clipboard

Caching content

Open duhow opened this issue 3 years ago • 2 comments

One of the main concers using WebClient is that every time a Person is created or a Room is named, Errbot has to call the Slack API several times to get each piece of information. Every. Single. Message.

From #2 I'm using lru_cache to address this, but a time-based cache would be the best option in here, or even having some control to drop cache for a user when the bot does some action, such as changing the topic of a channel.

duhow avatar Jan 20 '21 20:01 duhow