7 Nov 2012 9:41 AM #1
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?
9 Nov 2012 5:08 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
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
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.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.
10 Nov 2012 1:05 PM #3
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.