Skip to content

Commit

Permalink
Update config.ru ttl and exception configs
Browse files Browse the repository at this point in the history
  • Loading branch information
rwdaigle committed Feb 20, 2012
1 parent 7d39915 commit c39813c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config.ru
Expand Up @@ -5,9 +5,11 @@ Bundler.require(:default, ENV['RACK_ENV'] || 'development')
require 'rack/contrib' require 'rack/contrib'
require 'newrelic_rpm' require 'newrelic_rpm'


use Rack::ShowExceptions unless ENV['RACK_ENV'] == 'production' if ENV['RACK_ENV'] == 'production'
use Rack::ShowExceptions
end


ttl = ENV['DEFAULT_TTL'].to_i || 3600 ttl = ENV['DEFAULT_TTL'] ? ENV['DEFAULT_TTL'].to_i : 3600
use Rack::Cache, use Rack::Cache,
:verbose => true, :verbose => true,
:default_ttl => ttl, :default_ttl => ttl,
Expand Down

0 comments on commit c39813c

Please sign in to comment.