add activerecord query cache
This commit is contained in:
parent
a6a1781bd9
commit
272c1275f4
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user