summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-20 21:15:50 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-20 21:15:50 -0700
commit4058b165cce38c5f5e7d1670d63e3f711443e329 (patch)
treeed60215862878418c294ed7090b70f949402c7e6
parent93ef74bb87c6be4e4e00399af519d24630653712 (diff)
Fix the disk cache by moving a better fix into SDURLCache.
-rw-r--r--MobileCydia.mm12
m---------SDURLCache0
2 files changed, 5 insertions, 7 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 3e1b684..2b16ee2 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
-Subproject 25be7b92f6b5265ae01197d30165dfb5574bb85
+Subproject 8626864f1339819f57c42bfd299cd3cd3dbdf49