enable cache for daily and single day

This commit is contained in:
Sacha Greif 2015-07-07 18:50:09 +09:00
parent ac2aa803c8
commit 9f3e227358
2 changed files with 4 additions and 2 deletions

View file

@ -19,7 +19,8 @@ Meteor.startup(function () {
view: "singleday",
date: this.date,
after: moment(this.date).startOf('day').toDate(),
before: moment(this.date).endOf('day').toDate()
before: moment(this.date).endOf('day').toDate(),
enableCache: true
}
};
return context;

View file

@ -13,7 +13,8 @@ Posts.controllers.singleday = Posts.controllers.list.extend({
view: 'singleday',
date: currentDate,
after: moment(currentDate).startOf('day').toDate(),
before: moment(currentDate).endOf('day').toDate()
before: moment(currentDate).endOf('day').toDate(),
enableCache: true
};
return {terms: terms};
},