From 9256a1ce33a4102a678fe087f072edcc0c0b7b02 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 21 Mar 2011 04:37:38 -0700 Subject: Clear NSURLCache during memory warnings. --- MobileCydia.mm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'MobileCydia.mm') diff --git a/MobileCydia.mm b/MobileCydia.mm index badaa61..face09b 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]; -- cgit v1.2.3