From: Jay Freeman (saurik) <saurik@saurik.com> Date: Mon, 21 Mar 2011 04:15:50 +0000 (-0700) Subject: Fix the disk cache by moving a better fix into SDURLCache. X-Git-Tag: v1.1.0%rc1~64 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/4058b165cce38c5f5e7d1670d63e3f711443e329?ds=sidebyside Fix the disk cache by moving a better fix into SDURLCache. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 3e1b6846..2b16ee26 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -9739,13 +9739,11 @@ _trace(); [BridgedHosts_ addObject:[[NSURL URLWithString:CydiaURL(@"")] host]]; } - // on 3.[01], CFURLCacheResponse is backed by NSURLCacheResponse, and vice versa: fail - if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iPhoneOS_3_2) - [NSURLCache setSharedURLCache:[[[CYURLCache alloc] - initWithMemoryCapacity:524288 - diskCapacity:10485760 - diskPath:[NSString stringWithFormat:@"%@/Library/Caches/com.saurik.Cydia/SDURLCache", @"/var/root"] - ] autorelease]]; + [NSURLCache setSharedURLCache:[[[CYURLCache alloc] + initWithMemoryCapacity:524288 + diskCapacity:10485760 + diskPath:[NSString stringWithFormat:@"%@/Library/Caches/com.saurik.Cydia/SDURLCache", @"/var/root"] + ] autorelease]]; [CydiaWebViewController _initialize]; diff --git a/SDURLCache b/SDURLCache index 25be7b92..8626864f 160000 --- a/SDURLCache +++ b/SDURLCache @@ -1 +1 @@ -Subproject commit 25be7b92f6b5265ae01197d30165dfb5574bb85a +Subproject commit 8626864f1339819f57c42bfd299cd3cd3dbdf499