LiveCloud Forums
About CDBCache behaviour - Printable Version

+- LiveCloud Forums (https://forums.livecloud.io)
+-- Forum: General (https://forums.livecloud.io/forumdisplay.php?fid=1)
+--- Forum: General (https://forums.livecloud.io/forumdisplay.php?fid=3)
+--- Thread: About CDBCache behaviour (/showthread.php?tid=72)



About CDBCache behaviour - simon.schvartzman - 08-09-2019

Hi, I have the following doubt for which I would appreciate a clarification.

According to the documentation:

"...any time your users lose their internet connection, CanelaDB will cache this transaction. The transactions are saved even if the application shuts down, so you never have to worry about missing your cloud calls."

I don't get when the cached transactions will be written to the cloud. In other words will this happen the next time the user launches the application or...?

Many thanks in advance


RE: About CDBCache behaviour - efrain.c - 08-09-2019

Hi Simon,

Any cloud call that modifies data will be cached if the user is offline. The cache will automatically be written to the cloud once the user is back online and makes any cloud call that modifies data. Alternatively, you can use cdb_flushCache to manually write all the transactions in the cache to the cloud whenever you want.


RE: About CDBCache behaviour - simon.schvartzman - 08-09-2019

(08-09-2019, 05:59 PM)efrain.c Wrote: Hi Simon,

Any cloud call that modifies data will be cached if the user is offline. The cache will automatically be written to the cloud once the user is back online and makes any cloud call that modifies data. Alternatively, you can use cdb_flushCache to manually write all the transactions in the cache to the cloud whenever you want.

Thanks Efrain, got it.

Best