No public method to force archive of cache data #18

allanweir opened this Issue Dec 6, 2013 · 2 comments


None yet

2 participants


I've been working on a project which performs a background fetch of large amounts of data. I'm using the ARC branch of AFCache but it seems like if the app is terminated after the fetch and before the app ever enters the foreground, then the cache store is not updated.

Is there a method in the library to force a save of the cache data?


I've added the public method archiveNow. That should do it, but I didn't test it yet ...


Thanks for getting back to me so quick! It doesn't look like this is working still during a background fetch - I think it's because a new thread is started which doesn't have time to complete. Calling archiveWithInfoStore instead of startArchiveThread seems to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment