serenity icon indicating copy to clipboard operation
serenity copied to clipboard

Cache results of methods that request data using `Http`

Open jamesbt365 opened this issue 9 months ago • 1 comments

A lot of methods that request data do not cache the result, leading to requesting information far more often than is actually needed. We should scrub through and try and cache as much information as possible to prevent the need to request it twice.

This is a problem on both current and next.

For example, Guild and GuildId do not cache the request of the Http request on the member method, this happens all across the library for methods that fetch data.

jamesbt365 avatar May 21 '24 12:05 jamesbt365