Results 1 to 2 of 2

Thread: How to disable DisbleCaching mechanism during the load of my own scripts?

  1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    19
    Vote Rating
    0
      0  

    Default How to disable DisbleCaching mechanism during the load of my own scripts?

    I want to set the breakpoints in my application to watch behavior of some variables during the load. But, all the scripts requests nowdays are summoned with _dc postfix, so firebug treat the scripts as the new ones upon the load and ignores breakpoints as they were set for "different" script.
    I'm using extjs/ext-all-debug.js so my application is like that:
    Code:
    Ext.Loader.setConfig({enabled:true});
    Ext.Loader.setConfig({disableCaching:true});
    Ext.application({
       ...
    But seems disableCaching:true is ignored. Running on ExtJS 4.0.2a

  2. #2
    Sencha User
    Join Date
    May 2007
    Posts
    66
    Vote Rating
    0
      0  

    Default

    disableCaching should be set to false, not true if you want Ext to stop placing _dc timestamps.

    Code:
    Ext.Loader.setConfig({
        enabled: true,
        disableCaching: false
    });
    
    Ext.application({    ...
    The best advice I've been given ... Read the code.

Posting Permissions

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