Skip to content

Commit

Permalink
Fixed issue where options.cache was always ignored in view.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoudj authored and tj committed Jul 26, 2010
1 parent c3a2aff commit aceb6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/express/view.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ http.ServerResponse.prototype.render = function(view, options, fn){


// Cache contents // Cache contents
try { try {
var str = viewCache[path] || cacheViewSync(path); var str = ( options.cache ? viewCache[path] : null ) || cacheViewSync(path);
} catch (err) { } catch (err) {
return error(err); return error(err);
} }
Expand Down

0 comments on commit aceb6ab

Please sign in to comment.