Skip to content
Myr

Fixed view caching, should not be enabled in development

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 8323f19 · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:lib/view.js+3 added-2 removed
338 unmodified lines
339 , app = this.app340 , helpers = app._locals341 , dynamicHelpers = app.dynamicViewHelpers342 , viewOptions = app.set('view options')343 , cacheViews = app.enabled('view cache')343 , root = app.set('views') || process.cwd() + '/views';344345 // cache id347 var cid = view + (parent ? ':' + parent.path : '');346 var cid = app.enabled('view cache')347 ? view + (parent ? ':' + parent.path : '')348 : false;349350 // merge "view options"351 if (viewOptions) merge(options, viewOptions);352
110 unmodified lines