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

Already on GitHub? Sign in to your account

add date-based purging to `OGImageCache` #28

Closed
wants to merge 11 commits into
from

Conversation

Projects
None yet
1 participant
Owner

artgillespie commented Aug 20, 2013

Provides a new method on OGImageCache : purgeDiskCacheWithDate:wait:

This removes any cached files from disk whose access time is older than the provided date. Client apps can use this to implement LRU-based cache cleanup appropriate for their use cases.

artgillespie added some commits Aug 20, 2013

standardizes on using `NSURL` for files throughout `OGImageCache`
Leaving `filePathForKey:` for backwards-compatibility. (Re-implemented in terms of `fileURLForKey:`
standardizes on using `NSURL` for files throughout `OGImageCache`
Leaving `filePathForKey:` for backwards-compatibility. (Re-implemented in terms of `fileURLForKey:`
fixes bugs in demo app.
- Move purging to `applicationDidEnterBackground`
- Fixes bug with `detailTextLabel` -- now we just show any errors
- Moves `OGImageTableViewCell` to latest observer methods.
Owner

artgillespie commented Aug 22, 2013

Selected wrong target branch see #29

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