From c39813c605a4ccf7e9d618bba17511b3d84788b2 Mon Sep 17 00:00:00 2001 From: Ryan Daigle Date: Mon, 20 Feb 2012 15:47:09 -0500 Subject: [PATCH] Update config.ru ttl and exception configs --- config.ru | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.ru b/config.ru index 3b6f0dd..e122abd 100644 --- a/config.ru +++ b/config.ru @@ -5,9 +5,11 @@ Bundler.require(:default, ENV['RACK_ENV'] || 'development') require 'rack/contrib' 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, :verbose => true, :default_ttl => ttl,