Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-4962 in Touch 2.3.1 (38).
  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    153
    Vote Rating
    3
    coolfish is on a distinguished road

      0  

    Default Removing an object from localstorage does not remove it from cache

    Removing an object from localstorage does not remove it from cache


    ST 2.2.1

    Code is in WebStorage.js. The this.cache reference to the object is not removed.

    Code:
    removeRecord: function(id, updateIds) {
            var me = this,
                ids;
    
    
            if (id.isModel) {
                id = id.getId();
            }
    
    
            if (updateIds !== false) {
                ids = me.getIds();
                Ext.Array.remove(ids, id);
                me.setIds(ids);
            }
    
    
            me.getStorageObject().removeItem(me.getRecordKey(id));
        },
    fix is simple, add in the following lines to the removeRecord function.


    Code:
         this.cache[id] = null;
         this.cache[id] = undefined;  // (as readRecord checks to see if it's === undefined)
    WebStorage.clear should also probably nuke the cache as well.


    Note that really, since I've set useCache to false for the model, it should pass this set up to the proxy object and bypass the cache entirely, but that's a bit more work.

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    2,846
    Vote Rating
    89
    fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    7
    TommyMaintz will become famous soon enough

      0  

    Default


    This has been fixed for the next release. Thanks for the report and suggested fix!

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar