Skip to content

Commit

Permalink
chore(view): ejs add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
kaivean committed Oct 29, 2023
1 parent 2238340 commit a3a2edc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/view/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ async function plugin(fastify: FastifyInstance, opts: HothViewOptions) {
});
}
}
else if (type === 'ejs') {
engine.cache = renderCaches;
}

const renderer = renders[type];

Expand Down

0 comments on commit a3a2edc

Please sign in to comment.