-
22 Mar 2012 2:10 AM #1
Using Ext.Loader.setConfig to set disableCaching : false
Using Ext.Loader.setConfig to set disableCaching : false
Hi,
I have a couple of questions regarding Ext.Loader.setConfig():
1) I want to debug some code prior to my application displaying its initial view, and so I want to set disableCaching : false in Ext.Loader.setConfig() so my breakpoints persist after a refresh and I can stop at the required point.
I have a hand-crafted Sencha Touch 2 application I'm using as a reference, which simply contains this code:
I can't see in Sencha Designer how to do this?Code:Ext.Loader.setConfig({ enabled : true, disableCaching : true, <....some other statements...> });
2) This property disableCaching : false seems to be logically back to front, as boolean properties are normally named according to a positive statement (enable rather than disable) e.g. enableCaching: true rather than disableCaching: false?
Cheers,
Steve
-
22 Mar 2012 10:16 AM #2
1)
The ability to set loader configurations is not supported yet.
If you've already created the majority of the classes for your application, you're best off making a copy of the designer.js and html file and changing that once. Then you only need to worry when the designer.js file changes in the future.
Sorry, not a pretty solution but a workaround for the time being.
2)
disableCaching is the configuration. I understand your logic but this is not the API. It mimics many standard HTML things like inputs etc.Aaron Conran
@aconran
Sencha Architect Development Team
-
2 Apr 2012 3:50 PM #3
We would like to see this feature added as well. The backend server that we have no control over for a project does not support caching parameters.
We have been using @aconranworkaround #1 above
Current
RequestedCode:Ext.Loader.setConfig({ enabled: true });
Code:Ext.Loader.setConfig({ disableCaching : false, enabled: true });
-
2 Apr 2012 3:57 PM #4
This was implemented in build #353. Here's how you can do it....
Go to the Application node.
Search for Loader in the property configuration search (or enable advanced mode and scroll to it)
Click the + next to Loader Config
Go to the new loader node, you can either click the arrow or click it in the inspector
Turn off disableCaching via the boolean property paneAaron Conran
@aconran
Sencha Architect Development Team


Reply With Quote