Caching on iOS
Dan Friedman
dan at clearvisiontech.com
Mon Jan 9 16:14:56 EST 2012
Roger,
The file I am writing is tiny... about 75 bytes! More info... I posted the file then asked the application to download the file every thirty seconds. It is getting the older version of the file every time... It's been about 15 minutes so far and it's still getting the old file. On my desktop computer (on the same network) I see the new (correct) version of the file.
Last night I launched the app (on the iPhone) and had it write the file. I then checked the file on the phone and it was wrong. I then left the app open and went to sleep. In the morning, I clicked "refresh" in my app and the new file was there!
HUH????
-Dan
> It could simply be a network speed issue. Try a tiny text file so you can
> check the results quicker, then use a larger file. The actual transfer may
> be backgrounded on iOS.
>
> ~Roger
>
>
>> Hello...
>>
>> Does anyone know if there is a setting for caching on iOS? Here's what's happening: I post text to a file on a server (via ftp) using a simple "put" command in a LC project on my iPhone. The data IS writing to the server - I can verify that. However, if I re-read the data that was just written to the server (from within my app), I get the old version of the data. If I wait several hours (I haven't yet tried to figure out exactly how long), I get the correct version of the data. I have tried restarting the app and I tried restarting the device. The same thing happens on my iPad. But, it works perfectly from my desktop computer (which is on the same network).
>>
>> Any ideas?
>>
>> Thanks in advance,
>> -Dan
More information about the use-livecode
mailing list