rs/SDWebImage — pull request #353 by jparise (2013-03-28 02:09:06+00:00)
Title: Support a maximum disk cache size in -cleanDisk.

Previously, -cleanDisk would only remove cache files that were older
than the configured expiration date. This allowed the disk cache to
grow significantly if a large number of resources were cached over a
short period of time.

This change adds a second (optional) size-based cleaning pass that
removes files from the disk cache until its overall size falls below
half of the configured maximum size. Older files are deleted first.

The size-based pass is disabled by default (maxCacheSize == 0).