err-backend-slackv3
err-backend-slackv3 copied to clipboard
Caching content
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.