check redis for :use_rack_cache
This commit is contained in:
parent
85e67b6094
commit
f19f5f9879
|
@ -42,7 +42,7 @@ GIT
|
||||||
|
|
||||||
GIT
|
GIT
|
||||||
remote: git://github.com/travis-ci/travis-core.git
|
remote: git://github.com/travis-ci/travis-core.git
|
||||||
revision: 3d9b40dd4bdf3a4f7c825faddd2ca88269092a03
|
revision: 2e3072e862709c5a1a3daf51abb13adc518e3f14
|
||||||
branch: sf-rich-states
|
branch: sf-rich-states
|
||||||
specs:
|
specs:
|
||||||
travis-core (0.0.1)
|
travis-core (0.0.1)
|
||||||
|
|
|
@ -62,7 +62,8 @@ module Travis::Api
|
||||||
use ActiveRecord::ConnectionAdapters::ConnectionManagement
|
use ActiveRecord::ConnectionAdapters::ConnectionManagement
|
||||||
use ActiveRecord::QueryCache
|
use ActiveRecord::QueryCache
|
||||||
|
|
||||||
if memcache_servers = ENV['MEMCACHE_SERVERS']
|
memcache_servers = ENV['MEMCACHE_SERVERS']
|
||||||
|
if Travis::Features.feature_active?(:use_rack_cache) && memcache_server
|
||||||
namespace = File.read('.deploy-sha')[0..7]
|
namespace = File.read('.deploy-sha')[0..7]
|
||||||
use Rack::Cache,
|
use Rack::Cache,
|
||||||
verbose: true,
|
verbose: true,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user