Casper-Guo / Armchair-Strategist

Strategy dashboard for all F1 races since 2018
https://armchair-strategist.dev/
Apache License 2.0
44 stars 2 forks source link

Dashboard cache session info #65

Open Casper-Guo opened 2 months ago

Casper-Guo commented 2 months ago

Most of the delay in the dashboard originates from the need to ping F1 and Ergast API to request session name and driver list

These requests are not evenly distributed amongst all races. More recent races will have more hits.

It makes sense to cache the result of these requests. Will need to modify get_session_info to return immutable types

Pros:

Cons