RealToken-Community / dashboard-v2

https://dashboard.realtoken.community
5 stars 4 forks source link

[Feature] Add cache on API call #17

Closed Sigri44 closed 1 year ago

Sigri44 commented 1 year ago

Add a cache (12/24h?) on call api (currently about 9k calls / week, or 41 /hours), which is not necessary.

jycssu-com commented 1 year ago

I add a cache mechanism with a lifetime of 1 hour. This cache is common to all users, so in the worst scenario, the dashboard should stay below 200 requests per week. I set one hour because for now, there is no mechanism to force the cache expires