require './init'

use Rack::Cache

use Warden::Manager do |manager|
  manager.default_strategies :password
  manager.failure_app = MyApp
end

map '/' do
  run MyApp
end
require './init'

use Rack::Cache if ENV['RACK_ENV'] == 'production'

use Warden::Manager do |manager|
  manager.default_strategies :password
  manager.failure_app = MyApp
end

map '/' do
  run MyApp
end
Use rack-cache only in production
Use rack-cache only in production
