evgenyneu / moa

An image download extension of the image view written in Swift for iOS, tvOS and macOS.
MIT License
333 stars 45 forks source link

[QUESTION] Manually invalidating cache #8

Open minuscorp opened 8 years ago

minuscorp commented 8 years ago

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 commented 8 years ago

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.