 globals        = require 'globals'
 REMOTE_CACHE   = {}
 whoami = require 'app/util/whoami'
+
+FORCE_CACHE_LIST = [
+  'JStackTemplate'
+]
 
 module.exports = RemoteExtensions =
 


  addInstance: (instanceId, instance) ->

    return  unless instance._events?.update?

    instances  = @getCache()[instanceId]
    instances ?= []

        # if update listener is added. which is used by kd.js to get data
        # update and redraw the ui components attached to it.
        @on 'newListener', (listener) =>
          if model not in FORCE_CACHE_LIST
            return  unless listener is 'update'
          # microemitter fires the `newListener` event before setting
          # the event itself so we need to wait for it until it's set.
          process.nextTick => RemoteExtensions.addInstance data._id, this
