1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    7
    Vote Rating
    1
    karencc is on a distinguished road

      0  

    Default Sencha touch model.load(id,..) returning cached model data with id requested

    Sencha touch model.load(id,..) returning cached model data with id requested


    I am using sencha touch 2.1.0, I have a 'list' of items a user can select on the tap of the list i.e onListItemSelect i am getting the id of the item selected and trying to load the model using an ajaxproxy.


    I can see very clearly a correct 'get' executes and the correct data is returned from the server but in sencha touch ocassionally one of the previously selected model gets loaded.


    recordcase = Ext.ModelManager.getModel('WMSApp.model.CaseBean');
    recordcase.load(casdRecordId,{scope:this,reload:true,




    success:function(resource) {
    caseRecord = resource;
    WMSApp.app.getController('WMSApp.controller.FrontController').setSelectedCaseBean(caseRecord);


    },
    failure:function(record, operation) {


    console.log("Failed to load Selected Case Bean! ")




    } });




    i.e resource variable has value of some older model,
    where are these models being cached and how can i force reinitialization of resource variable.


    in my loader and models i have used the nocache settings, I am really confused please give me any solutions !!

  2. #2
    Touch Premium Member BostonMerlin's Avatar
    Join Date
    Aug 2010
    Location
    Boston
    Posts
    515
    Vote Rating
    41
    BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about

      0  

    Default


    this might not have anything to do with your specific issue as it sounds like you're testing within the browser on your dev box but iOS6 introduced a bug (Apple considers this a performance enhancement) where iOS caches XHR (ajax) requests after the initial call to the same url. Again, might not be you're specific issue but try throwing a timestamp at your url call to force its uniqueness.

    Hope that helps
    John

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    7
    Vote Rating
    1
    karencc is on a distinguished road

      0  

    Default


    I am very sure from the get requests in network tab of chrome that the correct data is sent by server,
    It is sencha part that i feel is not loading that retrieved data correctly everytime but picking some cached models.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi