Skip to content

Commit fea847b

Browse files
authored
Increase default diskCache byte limit from 20 to 50MB(PINCache default) (#2002)
1 parent 50426db commit fea847b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Details/ASPINRemoteImageDownloader.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ @implementation ASPINRemoteImageManager
9999
if ([diskCache respondsToSelector:@selector(setByteLimit:)]) {
100100
// Set a default byteLimit. PINCache recently implemented a 50MB default (PR #201).
101101
// Ensure that older versions of PINCache also have a byteLimit applied.
102-
// NOTE: Using 20MB limit while large cache initialization is being optimized (Issue #144).
103-
((id <ASPINDiskCache>)diskCache).byteLimit = 20 * 1024 * 1024;
102+
// NOTE: Matching PINCache defualt 50MB limit.
103+
((id <ASPINDiskCache>)diskCache).byteLimit = 50 * 1024 * 1024;
104104
}
105105
}
106106
});

0 commit comments

Comments
 (0)