add activerecord query cache

This commit is contained in:
Sven Fuchs 2012-10-12 01:51:59 +02:00
parent a6a1781bd9
commit 272c1275f4

View File

@ -56,6 +56,7 @@ module Travis::Api
use Hubble::Rescuer, env: Travis.env, codename: ENV['CODENAME'] if Endpoint.production? && ENV['HUBBLE_ENDPOINT'] use Hubble::Rescuer, env: Travis.env, codename: ENV['CODENAME'] if Endpoint.production? && ENV['HUBBLE_ENDPOINT']
use Rack::Protection::PathTraversal use Rack::Protection::PathTraversal
use Rack::SSL if Endpoint.production? use Rack::SSL if Endpoint.production?
use ActiveRecord::QueryCache
if memcache_servers = ENV['MEMCACHE_SERVERS'] if memcache_servers = ENV['MEMCACHE_SERVERS']
use Rack::Cache, use Rack::Cache,