pinballmap / pbm

Pinball Map
https://pinballmap.com
GNU General Public License v3.0
110 stars 25 forks source link

Caching #1524

Closed RyanTG closed 1 year ago

RyanTG commented 1 year ago

Issue for discussing caching strategies.

WIP here for caching LMXs: https://github.com/pinballmap/pbm/pull/1523

I need to check that the updated_at is being updated when IC is toggled.

Other potential cacheable items:

Every time the mobile app opens, it pulls these 5 endpoints. The first 4 rarely change and so might be good candidates for perhaps Low-Level Caching:

          getRegions("/regions.json"),
          getLocationTypes("/location_types.json"),
          getMachines("/machines.json"),
          getOperators("/operators.json"),
          getLocationAndMachineCounts(
            "/regions/location_and_machine_counts.json",