move memory capacity into mvm rc
This commit is contained in:
parent
1d269aa54c
commit
1d7e73768a
@ -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];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user