little3399 Active Member Licensed User Longtime User Jun 30, 2014 #1 Hi, Is there a way to disable then android cache ?
little3399 Active Member Licensed User Longtime User Jun 30, 2014 #3 HTTPJOB data Cache ... because I found some data which received from SERVER will be stored in the cache .... and I want to disable cache so the data can be synchronous to the Server Upvote 0
HTTPJOB data Cache ... because I found some data which received from SERVER will be stored in the cache .... and I want to disable cache so the data can be synchronous to the Server
Erel B4X founder Staff member Licensed User Longtime User Jun 30, 2014 #4 There is no cache. Make sure that HttpJob.Success is True in JobDone. Upvote 0
S susu Well-Known Member Licensed User Longtime User Jun 30, 2014 #5 Maybe off topic: How to clear cache? After sometime of using, my app is full of cached file in /data/data/package.name/cache Upvote 0
Maybe off topic: How to clear cache? After sometime of using, my app is full of cached file in /data/data/package.name/cache
eps Expert Licensed User Longtime User Jun 30, 2014 #6 How are you retrieving the information? GET or PUT? Put should get the current information whereas a GET will use cached information for instance. Upvote 0
How are you retrieving the information? GET or PUT? Put should get the current information whereas a GET will use cached information for instance.
little3399 Active Member Licensed User Longtime User Jun 30, 2014 #7 I use the GET method , is there good way to avoid the app not use the cache data ? TKS! Upvote 0
eps Expert Licensed User Longtime User Jun 30, 2014 #8 Use POST (sorry not PUT) http://www.b4x.com/android/forum/threads/httputils2-web-services-are-now-even-simpler.18992/ See here for more info : http://www.w3schools.com/tags/ref_httpmethods.asp POST requests are never cached. Upvote 0
Use POST (sorry not PUT) http://www.b4x.com/android/forum/threads/httputils2-web-services-are-now-even-simpler.18992/ See here for more info : http://www.w3schools.com/tags/ref_httpmethods.asp POST requests are never cached.
little3399 Active Member Licensed User Longtime User Jun 30, 2014 #9 Hi, I was using httpjob.poststring method to receive data ... Upvote 0
eps Expert Licensed User Longtime User Jun 30, 2014 #10 Can you post some code please, as it's a bit hard to work out what the issue is... Something like : B4X: Dim DataUrl, DataPostString As String DataUrl = "http://www.url.com" DataPostString = "your_poststring_here" Current_Filter = "ALL" Dim job As HttpJob 'Send a POST request job.Initialize("Data Update", Me) job.PostString(DataUrl & DataPostString, Null) ProgressDialogShow2("Refreshing reference data...", False) Upvote 0
Can you post some code please, as it's a bit hard to work out what the issue is... Something like : B4X: Dim DataUrl, DataPostString As String DataUrl = "http://www.url.com" DataPostString = "your_poststring_here" Current_Filter = "ALL" Dim job As HttpJob 'Send a POST request job.Initialize("Data Update", Me) job.PostString(DataUrl & DataPostString, Null) ProgressDialogShow2("Refreshing reference data...", False)
Erel B4X founder Staff member Licensed User Longtime User Jun 30, 2014 #11 is there good way to avoid the app not use the cache data ? TKS! Click to expand... There is no cache. Upvote 0
is there good way to avoid the app not use the cache data ? TKS! Click to expand... There is no cache.