From 78be42ee3bfbc2f12816bb1fc58330e0b3d512c9 Mon Sep 17 00:00:00 2001 From: Ryan Romanchuk Date: Wed, 13 May 2015 11:03:13 -0700 Subject: [PATCH] Use subclassed NSCache --- SDWebImage/SDImageCache.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDImageCache.m b/SDWebImage/SDImageCache.m index c181f7d8..114b1e57 100644 --- a/SDWebImage/SDImageCache.m +++ b/SDWebImage/SDImageCache.m @@ -97,7 +97,7 @@ FOUNDATION_STATIC_INLINE NSUInteger SDCacheCostForImage(UIImage *image) { _maxCacheAge = kDefaultCacheMaxCacheAge; // Init the memory cache - _memCache = [[NSCache alloc] init]; + _memCache = [[AutoPurgeCache alloc] init]; _memCache.name = fullNamespace; // Init the disk cache