From 3262c63b5a2ec2db8ebb3969afe9aa98ab6902b6 Mon Sep 17 00:00:00 2001 From: Mussa Charles Date: Fri, 19 Aug 2022 01:27:58 +0900 Subject: [PATCH] Increase default diskCache byte limit from 20 to 50MB(PINCache default) (#2002) --- Source/Details/ASPINRemoteImageDownloader.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Details/ASPINRemoteImageDownloader.mm b/Source/Details/ASPINRemoteImageDownloader.mm index 1d9ab1612..2634a52d3 100644 --- a/Source/Details/ASPINRemoteImageDownloader.mm +++ b/Source/Details/ASPINRemoteImageDownloader.mm @@ -112,8 +112,8 @@ @implementation ASPINRemoteImageManager if ([diskCache respondsToSelector:@selector(setByteLimit:)]) { // Set a default byteLimit. PINCache recently implemented a 50MB default (PR #201). // Ensure that older versions of PINCache also have a byteLimit applied. - // NOTE: Using 20MB limit while large cache initialization is being optimized (Issue #144). - ((id )diskCache).byteLimit = 20 * 1024 * 1024; + // NOTE: Matching PINCache defualt 50MB limit. + ((id )diskCache).byteLimit = 50 * 1024 * 1024; } } });