<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sync API and caching in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sync-API-and-caching/m-p/7575#M335</link>
    <description>&lt;P&gt;Alright, so I wasn't aware of how update doesn't block until the file downloads, so I added an observer should newerStatus not be nil and once download progress was at 1.0 I called update and surely enough DBFile now references the proper version of the file. Hope this helps someone in the future.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Dec 2014 11:44:50 GMT</pubDate>
    <dc:creator>Mohammed E.</dc:creator>
    <dc:date>2014-12-31T11:44:50Z</dc:date>
    <item>
      <title>Sync API and caching</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sync-API-and-caching/m-p/7574#M334</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm using the sync API to upload and download a drawn image across iOS devices. I've added a file system observer to respond to any file changes. However the API caching of the image seems to be causing issues. The image uploads fine, I can see it updated on Dropbox, I'm getting notified on my other device of the update through the observer, however the DBFile that I open to reference the image contains the old version, even after I use the update function on the DBFile. If I set the file system maxFileCacheSize to 0, then everything is working as expected. Any ideas on what could be wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:46:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sync-API-and-caching/m-p/7574#M334</guid>
      <dc:creator>Mohammed E.</dc:creator>
      <dc:date>2019-05-29T09:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sync API and caching</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sync-API-and-caching/m-p/7575#M335</link>
      <description>&lt;P&gt;Alright, so I wasn't aware of how update doesn't block until the file downloads, so I added an observer should newerStatus not be nil and once download progress was at 1.0 I called update and surely enough DBFile now references the proper version of the file. Hope this helps someone in the future.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2014 11:44:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sync-API-and-caching/m-p/7575#M335</guid>
      <dc:creator>Mohammed E.</dc:creator>
      <dc:date>2014-12-31T11:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sync API and caching</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sync-API-and-caching/m-p/7576#M336</link>
      <description>&lt;P&gt;That's correct, reading a file will always give you any cached content first, not blocking on the download of new content (unless there is no cached copy), so you should use an observer to know when the new content is available and update to it. You can find more information here: &lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/sync/start/ios#observers" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/sync/start/ios#observers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jan 2015 07:15:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sync-API-and-caching/m-p/7576#M336</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-01-03T07:15:26Z</dc:date>
    </item>
  </channel>
</rss>

