Discord-Scout-Council / DSC-Bot

GNU General Public License v3.0
0 stars 0 forks source link

Cache #9

Open Muirrum opened 4 years ago

Muirrum commented 4 years ago

The bot should automatically cache things like server invites to make it easier (and faster) to fetch.

Currently, the servers command takes far too long because it has to fetch invites from each server individually. Caching the invites (or the code) would allow for them to all be fetched much faster

Muirrum commented 4 years ago

should also cache basic runuser data like name, and time joined discord

tfinnm commented 4 years ago

since the bot would have to verify that the invite link is still valid when it gets it from the cache (which would likely take as long as getting the link from discord in the first place), wouldn't it make more sense to not to cache server invites to reduce server resource usage?