03-31-2018, 08:43 AM
(This post was last modified: 03-31-2018, 08:45 AM by tommiehansen.)
(03-30-2018, 10:16 AM)thegamecat Wrote: This is really interesting Mike.
The prepare data idea is a really good one.
I wonder how this could work with multi time candles given that is where many of us are going. It's hard to know without there being a settled solution to this of course!
This wouldn't be a problem if the logic goes like this:
let data = getCache(id); // returns false if no cache.....
if( !data ) data = getData(id); // no cache, do request
So any request would just get cached and it wouldn't matter how the request was made.
Basically the same as now except just a check on top.