Results 1 to 3 of 3

Thread: Sencha store cache

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default Sencha store cache

    We are currently building an app using Sencha Touch 2.0.3 using the following steps

    1) We are getting JSON data from the database and storing it in HTML5 Local Storage of the phone.


    2) We are using this Local Storage data to populate content within our app screens through stores.


    3) During the Login AND Logout process, we first delete the entire local storage and even set individual objects to null. We then receive all the content from the database mentioned in Step 1 above.


    We tested the app using a test database and recently switched to production database with new content. But, when we logged in (got new json data), we see the new data, but also see some old entries from the test database.


    Does this mean Sencha is caching the data somewhere? if so, how to reset (delete) it?


    Thank you.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    Touch is not storing data unless you are having the localstorage to save it. Are you on iOS 6 where they cache POST requests?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Thank you for your response. It seems the problem is really in the local storage. Function localStorage.clear() does not always delete all the items.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •