moa icon indicating copy to clipboard operation
moa copied to clipboard

[QUESTION] Manually invalidating cache

Open minuscorp opened this issue 8 years ago • 1 comments

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!

minuscorp avatar Jun 27 '16 12:06 minuscorp

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.

evgenyneu avatar Jun 27 '16 22:06 evgenyneu