evermeer / EVURLCache

a NSURLCache subclass for handling all web requests that use NSURLRequest
Other
297 stars 49 forks source link

Cache eviction / current disk usage not implemented? #40

Closed lightandshadow68 closed 7 years ago

lightandshadow68 commented 7 years ago

When caching response data, the currentDiskUsage property does not appear to update. Does cached content get evicted if the maximum disk size is exceeded?

evermeer commented 7 years ago

No, there is no mechanism for currentDiskUsage calculation or cleaning the cach if the maximum disk size is exceeded. EVURLCache is meant to be used as a mechanism for letting your app work even if there is no connection. Cleaning the cache would limit that functionality.

There is a function for cleaning up expired cache items. You have to call that function manually.