You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I've noticed multiple calls when the bot looks up server side data. I like the idea of avoiding wasting calls to Slack if the bot has the information already. The only thing to be careful with caching is that it doesn't become stale and the bot return information that doesn't agree with Slack's state.
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.The text was updated successfully, but these errors were encountered: