check redis for :use_rack_cache

This commit is contained in:
Sven Fuchs 2012-12-05 17:21:00 +01:00
parent 85e67b6094
commit f19f5f9879
2 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,7 @@ GIT
GIT
remote: git://github.com/travis-ci/travis-core.git
revision: 3d9b40dd4bdf3a4f7c825faddd2ca88269092a03
revision: 2e3072e862709c5a1a3daf51abb13adc518e3f14
branch: sf-rich-states
specs:
travis-core (0.0.1)

View File

@ -62,7 +62,8 @@ module Travis::Api
use ActiveRecord::ConnectionAdapters::ConnectionManagement
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]
use Rack::Cache,
verbose: true,