summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-12-01 20:43:02 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-12-02 00:51:44 -0800
commit71cc7be109c603c3dcd7e08fbe440707c4f652de (patch)
tree65359d9f23f3d4b8e9fe039f7ca9c8468b1b9e87 /MobileCydia.mm
parent029c8b74ccda00c74f8a39bc75f817d4763ae93a (diff)
Integrate SDURLCache: disk cache FTW.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 55c8bd5..c6ba06d 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -121,6 +121,7 @@ extern "C" {
#include <Cytore.hpp>
#include "UICaboodle/BrowserView.h"
+#include "SDURLCache/SDURLCache.h"
#include "substrate.h"
/* }}} */
@@ -8744,6 +8745,12 @@ static _finline void _setHomePage(Cydia *self) {
- (void) applicationDidFinishLaunching:(id)unused {
_trace();
+ [NSURLCache setSharedURLCache:[[[SDURLCache alloc]
+ initWithMemoryCapacity:524288
+ diskCapacity:10485760
+ diskPath:[NSString stringWithFormat:@"%@/Library/Caches/com.saurik.Cydia/SDURLCache", @"/var/root"]
+ ] autorelease]];
+
[CYBrowserController _initialize];
[NSURLProtocol registerClass:[CydiaURLProtocol class]];