PopGoesTheWza / swgoh-tb-sheets

SWGoH Territory Battles Spreadsheets
MIT License
7 stars 2 forks source link

Implement a one hour caching of roster data #20

Closed PopGoesTheWza closed 6 years ago

PopGoesTheWza commented 6 years ago

The goal is to prevent hitting the data sources again and again while there is no new data.

Implementation design:

With this feature, event switching (LS/DS), sort order, etc. can take place almost instantly by reusing the data already within the spreadsheet.

DarkPhoenixSniper commented 6 years ago

@PopGoesTheWza I will work on recommended changes tonight/tomorrow for what i'm thinking of tracking Obviously a timestamp, which I already provided, but also move up the swgoh.help api section and move the captured values down below in a row. Timestamp, Light/Dark Side, rebel/empire, sort option, source option. Capture this data and store on the META tab, during initial data pull (At the end of the scripts)

PopGoesTheWza commented 6 years ago

@DarkPhoenixSniper take a look at the swgoh help api code and how session token is handled…

PopGoesTheWza commented 6 years ago

@DarkPhoenixSniper I committed a 6 hours cache of units' common attributes (name, base id and tags) and a 1 hour cache of members and their units. Basic tests proved conclusive. Likely to be in next release.

PopGoesTheWza commented 6 years ago

in next release