Hybrid View

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    2
    Vote Rating
    0
    onebesky is on a distinguished road

      0  

    Default Unanswered: Sencha store cache

    Unanswered: 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,824
    Answers
    3470
    Vote Rating
    836
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    2
    Vote Rating
    0
    onebesky is on a distinguished road

      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.

Thread Participants: 1

Tags for this Thread