Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8283221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:39:34+00:00 2026-06-08T10:39:34+00:00

I’ve got a really hard time to try disabling caching in the Restkit framework.

  • 0

I’ve got a really hard time to try disabling caching in the Restkit framework.
I’ve try to put the cache policy to none, with no effect at all. What’s the correct way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:39:35+00:00Added an answer on June 8, 2026 at 10:39 am

    So once you’ve got a client, either explicitly initializing it:

    RKClient *client = [RKClient clientWithBaseURL:url];
    

    or by letting the object manager do it:

    RKObjectManager* om = [RKObjectManager managerWithBaseURLString:url];
    RKClient *client = om.client;
    

    It should be a simple matter of just setting the cache policy:

    client.cachePolicy = RKRequestCachePolicyNone;
    

    Was that what you were doing?

    Update: Since the logging message is the only thing worrying I decided to track down its source. The tl;dr version is to ignore the message and trust what the logging proxy is telling you.

    To double check I searched for “Invalidating cache at path” and found it in two locations RKCache invalidateSubDirectory: and RKCache invalidateAll and set break points on them. Here’s a partial stack trace from some of my code:

    #0  0x000e6c66 in -[RKCache invalidateSubDirectory:] at RestKit/Code/Support/RKCache.m:189
    #1  0x0006b767 in -[RKRequestCache invalidateWithStoragePolicy:] at RestKit/Code/Network/RKRequestCache.m:237
    #2  0x0006b958 in -[RKRequestCache setStoragePolicy:] at RestKit/Code/Network/RKRequestCache.m:253
    #3  0x00069abf in -[RKRequestCache initWithPath:storagePolicy:] at RestKit/Code/Network/RKRequestCache.m:60
    #4  0x000586f3 in -[RKClient baseURLDidChange:] at RestKit/Code/Network/RKClient.m:339
    #5  0x000589ce in -[RKClient observeValueForKeyPath:ofObject:change:context:] at RestKit/Code/Network/RKClient.m:373
    #6  0x0183cd91 in NSKeyValueNotifyObserver ()
    #7  0x0183c895 in NSKeyValueDidChange ()
    #8  0x0182233e in -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] ()
    #9  0x01844a82 in _NSSetObjectValueAndNotify ()
    #10 0x00057404 in -[RKClient initWithBaseURL:] at RestKit/Code/Network/RKClient.m:176
    #11 0x00056df3 in +[RKClient clientWithBaseURL:] at RestKit/Code/Network/RKClient.m:130
    

    What I learned looking through this is that there are two enums that control caching:

    • RKRequestCachePolicy which is what you set on the client, it controls when the cache is consulted.
    • RKRequestCacheStoragePolicy which determines how long the results are stored on the device (never, duration of session, permanent).

    As part of setting up the client, when a URL is set the client creates a new cache with RKRequestCacheStoragePolicyPermanently setting the storage policy involves clearing out the previous session cache and—if caching is disabled—the permanent cache. It’s that clearing that you’re seeing in the logging messages.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I've got a string that has curly quotes in it. I'd like to replace
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
i got an object with contents of html markup in it, for example: string
I am trying to loop through a bunch of documents I have to put
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.