]> git.saurik.com Git - cydia.git/commitdiff
Clear NSURLCache during memory warnings.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 21 Mar 2011 11:37:38 +0000 (04:37 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 21 Mar 2011 11:37:38 +0000 (04:37 -0700)
MobileCydia.mm

index badaa61a8b2a4fb9779c9a5458edbbb774e40133..face09be5c6ff8785674c845d7027e6a167e31f4 100644 (file)
@@ -9764,6 +9764,11 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
     }
 }
 
+- (void) applicationDidReceiveMemoryWarning:(UIApplication *)application {
+    NSLog(@"--");
+    [[NSURLCache sharedURLCache] removeAllCachedResponses];
+}
+
 - (void) applicationDidFinishLaunching:(id)unused {
     //[NSThread detachNewThreadSelector:@selector(_sendMemoryWarningNotifications) toTarget:self withObject:nil];