Closed moonysolari closed 7 months ago
I'm thinking that if we fetch something from the official servers, we should save it. I'd consider this intended behavior, as we shouldn't try and fetch everything on every single route.
Around 10-20 contract JSONs are fetched when the respective contract menus are loaded, and the user will only play a few of them as they browse through the menus. It's a bit wasteful to save all contract JSONs fetched when most of them will not be played.
IOI does not want us making mass requests to their servers - if we're going to fetch something, we need to not re-fetch it unless absolutely needed.
Around 10-20 contract JSONs are fetched when the respective contract menus are loaded, and the user will only play a few of them as they browse through the menus. It's a bit wasteful to save all contract JSONs fetched when most of them will not be played.
Contract jsons are only about 10KiB each (pretty printed, so even less minimized), so even storing hundreds of them will only take up a couble of megs
e.g. Trending, most played last week, and contract search. Broken by #362.