From: Jay Freeman (saurik) Date: Mon, 21 Mar 2011 11:37:38 +0000 (-0700) Subject: Clear NSURLCache during memory warnings. X-Git-Tag: v1.1.0%rc1~49 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/9256a1ce33a4102a678fe087f072edcc0c0b7b02 Clear NSURLCache during memory warnings. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index badaa61a..face09be 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -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];