Skip to content

Commit

Permalink
Renamed "cache views" to "view cache". Closes expressjs#628
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 17, 2011
1 parent dc02b0d commit d9e7153
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Server.prototype.init = function(middleware){

// default production configuration
this.configure('production', function(){
this.enable('cache views');
this.enable('view cache');
});

// register error handlers on "listening"
Expand Down
2 changes: 1 addition & 1 deletion lib/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ res._render = function(view, opts, fn, parent, sub){
, helpers = app.viewHelpers
, dynamicHelpers = app.dynamicViewHelpers
, viewOptions = app.set('view options')
, cacheViews = app.set('cache views')
, cacheViews = app.enabled('view cache')
, root = app.set('views') || process.cwd() + '/views';

// merge "view options"
Expand Down

0 comments on commit d9e7153

Please sign in to comment.