mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Turning off view caching by default now. Should help lower the memory footprint.
This commit is contained in:
parent
d14f862359
commit
610fc0694b
2 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ module.exports = class CocoRouter extends Backbone.Router
|
|||
@cache[route].fromCache = true
|
||||
return @cache[route]
|
||||
view = @getView(route)
|
||||
@cache[route] = view unless view and view.cache is false
|
||||
@cache[route] = view if view?.cache
|
||||
return view
|
||||
|
||||
routeDirectly: (path, args) ->
|
||||
|
|
|
@ -10,7 +10,7 @@ makeScopeName = -> "view-scope-#{classCount++}"
|
|||
|
||||
module.exports = class CocoView extends Backbone.View
|
||||
startsLoading: false
|
||||
cache: true # signals to the router to keep this view around
|
||||
cache: false # signals to the router to keep this view around
|
||||
template: -> ''
|
||||
|
||||
events:
|
||||
|
|
Loading…
Reference in a new issue