Skip to content

Commit

Permalink
fix cache
Browse files Browse the repository at this point in the history
should be the same as line 96
  • Loading branch information
dislido committed Nov 30, 2022
1 parent c59998c commit cca6214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function koaEjs (app, settings) {
const viewPath = path.join(settings.root, view)
debug(`render: ${viewPath}`)
// get from cache
if (settings.cache && cache[viewPath]) return cache[viewPath](options.scope, options)
if (settings.cache && cache[viewPath]) return cache[viewPath].call(options.scope, options)

const tpl = await settings.fs.readFile(viewPath, 'utf8')

Expand Down

0 comments on commit cca6214

Please sign in to comment.