Hi,
We have some data sources which we've configured to cache the data for 30 seconds to avoid too many server roundtrips. The data sources are basically configured as
setCacheAllData(true);
setCacheMaxAge(30);
We've aiming here for 30 seconds of caching in the client and periodical refresh of the data from the server and this works. Occasionally, quite rarely - but sometimes, some editors in the grids of our application get stuck as "Loading data ..." with these data sources and they seem not to be able to recover from the situation. We have trouble repeating the issue and we suspect that it has something to do with some network errors or such. For example, it can sometimes be seen when a user changes a wifi network (or something similar) and the browser's network has a hiccup of some kind.
My question is that does the protocol which fires the update for an expired cache (in our case every 30 seconds or longer) have a robust timeout handling or something else that should prevent this problem? My experience is that the controls relying on these data sources get stuck and it at least seems that the editors don't automatically recover when the initial cachealldata-fetch has failed. Also, this never happens for us with any control which has a data source defined to not cache the data for some seconds.
Thanks!
We have some data sources which we've configured to cache the data for 30 seconds to avoid too many server roundtrips. The data sources are basically configured as
setCacheAllData(true);
setCacheMaxAge(30);
We've aiming here for 30 seconds of caching in the client and periodical refresh of the data from the server and this works. Occasionally, quite rarely - but sometimes, some editors in the grids of our application get stuck as "Loading data ..." with these data sources and they seem not to be able to recover from the situation. We have trouble repeating the issue and we suspect that it has something to do with some network errors or such. For example, it can sometimes be seen when a user changes a wifi network (or something similar) and the browser's network has a hiccup of some kind.
My question is that does the protocol which fires the update for an expired cache (in our case every 30 seconds or longer) have a robust timeout handling or something else that should prevent this problem? My experience is that the controls relying on these data sources get stuck and it at least seems that the editors don't automatically recover when the initial cachealldata-fetch has failed. Also, this never happens for us with any control which has a data source defined to not cache the data for some seconds.
Thanks!
Comment