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

[QUESTION] Manually invalidating cache #8

Open
minuscorp opened this issue Jun 27, 2016 · 1 comment
Open

[QUESTION] Manually invalidating cache #8

minuscorp opened this issue Jun 27, 2016 · 1 comment

Comments

@minuscorp
Copy link

Is there any way (I've dug a little in the repository) to invalidate (flush) the both memory and disk cache from Moa to force re-download all the following requests even if they were already cached?

Thank you!

@evgenyneu
Copy link
Owner

Hello @minuscorp, good question. No, there is no way to clear the cache at the moment. It will be a great feature to add to the library, something like

Moa.settings.cache.clear()

Feel free to submit a pull request in Swift 3.0.

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

No branches or pull requests

2 participants