Use git rack-cache, less verbose.
This commit is contained in:
parent
879d531bdc
commit
fe88881dba
2
Gemfile
2
Gemfile
|
@ -14,7 +14,7 @@ gem 'unicorn'
|
|||
gem 'sentry-raven', github: 'getsentry/raven-ruby'
|
||||
gem 'yard-sinatra', github: 'rkh/yard-sinatra'
|
||||
gem 'rack-contrib', github: 'rack/rack-contrib'
|
||||
gem 'rack-cache', '~> 1.2'
|
||||
gem 'rack-cache', github: 'rtomayko/rack-cache'
|
||||
gem 'rack-attack'
|
||||
gem 'gh'
|
||||
gem 'bunny', '~> 0.8.0'
|
||||
|
|
11
Gemfile.lock
11
Gemfile.lock
|
@ -37,6 +37,13 @@ GIT
|
|||
metriks-librato_metrics (0.0)
|
||||
metriks (>= 0.9.9.6)
|
||||
|
||||
GIT
|
||||
remote: git://github.com/rtomayko/rack-cache.git
|
||||
revision: d00e6e491fcc7bdca9c27d735abde5c4fdb48cd9
|
||||
specs:
|
||||
rack-cache (1.2)
|
||||
rack (>= 0.4)
|
||||
|
||||
GIT
|
||||
remote: git://github.com/travis-ci/travis-core.git
|
||||
revision: a3fad94eca3c75e225050378a855f435854eb6ef
|
||||
|
@ -210,8 +217,6 @@ GEM
|
|||
rack (1.4.5)
|
||||
rack-attack (2.3.0)
|
||||
rack
|
||||
rack-cache (1.2)
|
||||
rack (>= 0.4)
|
||||
rack-protection (1.5.1)
|
||||
rack
|
||||
rack-ssl (1.3.4)
|
||||
|
@ -314,7 +319,7 @@ DEPENDENCIES
|
|||
mocha (~> 0.12)
|
||||
pry
|
||||
rack-attack
|
||||
rack-cache (~> 1.2)
|
||||
rack-cache!
|
||||
rack-contrib!
|
||||
rake (~> 0.9.2)
|
||||
rb-fsevent (~> 0.9.1)
|
||||
|
|
|
@ -112,7 +112,6 @@ module Travis::Api
|
|||
memcache_servers = ENV['MEMCACHIER_SERVERS']
|
||||
if Travis::Features.feature_active?(:use_rack_cache) && memcache_servers
|
||||
use Rack::Cache,
|
||||
verbose: true,
|
||||
metastore: "memcached://#{memcache_servers}/meta-#{Travis::Api::App.deploy_sha}",
|
||||
entitystore: "memcached://#{memcache_servers}/body-#{Travis::Api::App.deploy_sha}"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user