Browse files

Fixed issue where options.cache was always ignored in view.js.

  • Loading branch information...
1 parent c3a2aff commit aceb6ab666b3075825265868abc931a9180151e0 @ewoudj ewoudj committed with tj Jul 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/express/view.js
View
2 lib/express/view.js
@@ -284,7 +284,7 @@ http.ServerResponse.prototype.render = function(view, options, fn){
// Cache contents
try {
- var str = viewCache[path] || cacheViewSync(path);
+ var str = ( options.cache ? viewCache[path] : null ) || cacheViewSync(path);
} catch (err) {
return error(err);
}

0 comments on commit aceb6ab

Please sign in to comment.