Caching Problem

Discussion in 'iOS Programming' started by Ploetzeneder, Dec 2, 2009.

  1. macrumors newbie

    Oct 15, 2009
    i have the following now:

    	[[NSURLCache sharedURLCache] removeAllCachedResponses];
    	[[NSURLCache sharedURLCache] setMemoryCapacity: 0];
    	[[NSURLCache sharedURLCache] setDiskCapacity:0];
    	NSURLCache *sharedCache = [NSURLCache sharedURLCache];
    	[sharedCache removeAllCachedResponses];
    	xmlParser = [[NSXMLParser alloc] initWithContentsOfURL:xmlURL];
    	[xmlParser setDelegate:self];
    	[xmlParser parse];
    and the Problem is, that somewhere it caches the content, the xmlURL is always the same, the content changes, i want to force the xmlParser to reload this?

    Any ideas?
    It is quite urgent , i am student and i need it untill this week, so paying 50 Euros to solve this would not be the problem.
    The simulator works perfect but on the device there are problems.

Share This Page