I have the following code:
Muskoka.GalleryRoute = Ember.Route.extend({
model: function() {
return this.store.find("photo");
}
});
Now I only want to call the database the first time the user goes to the Gallery route but the above calls the database every time.
How do I call the database only the FIRST time?
I’m aware the this.store.all() references the store cache but I need to go to the database at least once.