]> git.saurik.com Git - cydia.git/commitdiff
Fix the disk cache by moving a better fix into SDURLCache.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 21 Mar 2011 04:15:50 +0000 (21:15 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 21 Mar 2011 04:15:50 +0000 (21:15 -0700)
MobileCydia.mm
SDURLCache

index 3e1b68469e4649c7323f192b08e0104cc7fbf113..2b16ee261bc4891022eccf799799f0aa736f4fef 100644 (file)
@@ -9739,13 +9739,11 @@ _trace();
         [BridgedHosts_ addObject:[[NSURL URLWithString:CydiaURL(@"")] host]];
     }
 
         [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];
 
 
     [CydiaWebViewController _initialize];
 
index 25be7b92f6b5265ae01197d30165dfb5574bb85a..8626864f1339819f57c42bfd299cd3cd3dbdf499 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 25be7b92f6b5265ae01197d30165dfb5574bb85a
+Subproject commit 8626864f1339819f57c42bfd299cd3cd3dbdf499