mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
enable cache for daily and single day
This commit is contained in:
parent
ac2aa803c8
commit
9f3e227358
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue