move memory capacity into mvm rc

This commit is contained in:
Pan, Xinlei (Ryan) 2018-04-20 13:06:30 -04:00
parent 1d269aa54c
commit 1d7e73768a

View File

@ -529,7 +529,6 @@ static NSString * const STATIC_CACHE_COMPONENT = @"StaticCache.txt";
NSURL *s7URL = [self handleS7Path:pathOrName useWidth:useWidth widthForS7:widthForS7 useHeight:useHeight heightForS7:heightForS7 format:format finalRect:finalRect flipImage:flip];
if (s7URL) {
NSURLCache *sharedCache = [NSURLCache sharedURLCache];
[sharedCache setMemoryCapacity:200*1024*1024];
NSURLSessionConfiguration *configure = [NSURLSessionConfiguration defaultSessionConfiguration];
configure.URLCache = sharedCache;
NSURLSession *session = [NSURLSession sessionWithConfiguration:configure];