From 272c1275f49cd33668dd5c4a324d49491dd29496 Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Fri, 12 Oct 2012 01:51:59 +0200 Subject: [PATCH] add activerecord query cache --- lib/travis/api/app.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/travis/api/app.rb b/lib/travis/api/app.rb index ea2eb260..6da5cfd0 100644 --- a/lib/travis/api/app.rb +++ b/lib/travis/api/app.rb @@ -56,6 +56,7 @@ module Travis::Api use Hubble::Rescuer, env: Travis.env, codename: ENV['CODENAME'] if Endpoint.production? && ENV['HUBBLE_ENDPOINT'] use Rack::Protection::PathTraversal use Rack::SSL if Endpoint.production? + use ActiveRecord::QueryCache if memcache_servers = ENV['MEMCACHE_SERVERS'] use Rack::Cache,