Имам маршрут, който изисква да заредя набор от модели чрез api извиквания. Работи добре, но всеки път, когато отида на друг маршрут и след това се върна към маршрута, Ember задейства друг набор от gets. Как мога да кеширам резултата при първото зареждане на маршрут? Кодът е достъпен тук: https://github.com/knusul/embercv/blob/master/app/assets/javascripts/routes/index_route.coffee
App.IndexRoute = Ember.Route.extend
model: (param)->
return Em.RSVP.hash(
card: @store.find('card', 'singleton')
experiences: @store.find('experience')
educations: @store.find('education')
skills: @store.find('skill')
languages: @store.find('language')
hobbies: @store.find('hobby')
).then (hash) ->
return Em.RSVP.hash(hash)
setupController: (controller, model)->
if App.currentUser
@controllerFor('card').set 'model', model.card
@controllerFor('experiences').set 'model', model.experiences
@controllerFor('educations').set 'model', model.educations
@controllerFor('skills').set 'model', model.skills
@controllerFor('languages').set 'model', model.languages