Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache files get deleted after new run #9

Closed
kraw-ios opened this issue Jan 21, 2021 · 4 comments
Closed

Cache files get deleted after new run #9

kraw-ios opened this issue Jan 21, 2021 · 4 comments

Comments

@kraw-ios
Copy link
Contributor

@raulriera Hello,

Cache files are deleted after the application is run again, but during application execution it is able to get the cache properly from the directory.

Do you know what it can be? because it’s strange that he’s able to fetch during runtime, but if I close and open the app again, he cannot.

Thanks

@raulriera
Copy link
Owner

Hey,

it will depend where you are storing them. If its in the temp directory you don't know when the iOS system will clean them up. Maybe you are running out of space?

@kraw-ios
Copy link
Contributor Author

I tried in both temp and custom directory, and I also tried in simulator and real device that has enough space 😄

@raulriera
Copy link
Owner

Strange, can you please reproduce the error in the demo project?

@kraw-ios
Copy link
Contributor Author

@raulriera Sorry for late response, but I has trying to reproduce in an demo project without success! So after some debug I found out that I was using hashValue in the fileName of the object and Apple says that this hashValue is not the same in every App run.

Sorry about my mistake, I'm closing this issue 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants