diff --git a/ui (gen4)/features/core.js b/ui (gen4)/features/core.js index 3fa04ae1..7f401712 100755 --- a/ui (gen4)/features/core.js +++ b/ui (gen4)/features/core.js @@ -702,6 +702,8 @@ var CacheActions = actions.Actions({ // NOTE: progress will only be displayed if .showProgress(..) // action is available... 'pre-cache-progress': 3000, + + // XXX handler cache.. }, // Cache utility method... @@ -807,6 +809,15 @@ var CacheActions = actions.Actions({ this .clearCache() .preCache(t) }], + + + toggleHandlerCache: ['System/Action handler cache', + makeConfigToggler('action-handler-cache', + ['off', 'on']/*, + function(state){}*/)], + resetHanlerCache: ['System/Reset action handler cache', + function(){ + delete this.__handler_cache }], }) var Cache = @@ -831,6 +842,11 @@ module.Cache = ImageGridFeatures.Feature({ this.preCache() : false }], + ['start', + function(){ + // XXX this breaks loading... + //this.toggleHandlerCache(this.config['action-handler-cache'] || 'on') + }], /*/ XXX clear cache when feature/action topology changes... [[