Get Free Trial
Get Free Trial

question about cache

Answered
long yu asked on October 29, 2019

hello :
My file is a big file csv (10 mg), who change once a day.
Could flexmonster load the file once for a day plz ?
That’s means we needn’t reload the file when we reopen page flexmonster !
 
Thanks 

2 answers

Public
long yu October 30, 2019

hello : 
I think I did not express my problem well !
in fact, the data is renewed once a day,  it is stable in the day.
but it is big, the flexmonster needs time to load,
I would like the flexmonster  load the first time when we open the page, then when we reflesh the page, or reopen the page, the flexmonster does not need to reload the data. is there a cache in flexmonster to do it please ?

Public
Ian Sadovy Flexmonster October 30, 2019

Hello, 
 
Thank you for the details.
We would like to explain that Flexmonster does not cache/store any data in the user’s browser.
It is due to security reasons. That’s why if you need an additional layer with cache, you can try to implement it on top of the Flexmonster. For example, you can use inline JSON and cache it in the browser’s localStorage (see example https://jsfiddle.net/flexmonster/c2e71fvj/). Please note that it is only possible with JSON, all other data sources require loading the data from external resources every time.
 
As an alternative solution, we suggest taking a look at our beta feature (for the next major release) that can help to dramatically reduce the loading time by querying already aggregated data from the server: https://github.com/flexmonster/api-data-source
 
Please let us know if you have any other questions.
 
Regards,
Ian

Please login or Register to Submit Answer