From d4cc367a6f907f0b850335747cccb08948be50dd Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 9 Jan 2014 16:08:59 +1100 Subject: [PATCH] Disable cache for a bit to see if its killing the build --- config/initializers/99-anon-cache.rb | 3 +++ script/bench.rb | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/initializers/99-anon-cache.rb b/config/initializers/99-anon-cache.rb index d2c90beee87..0d9670d9f6a 100644 --- a/config/initializers/99-anon-cache.rb +++ b/config/initializers/99-anon-cache.rb @@ -6,6 +6,9 @@ enabled = if Rails.configuration.respond_to?(:enable_anon_caching) Rails.env.production? end +# DISABLE to check if its killing the smoke test +enabled = false + if !ENV['DISCOURSE_DISABLE_ANON_CACHE'] && enabled # in an ideal world this is position 0, but mobile detection uses ... session and request and params Rails.configuration.middleware.insert_after ActionDispatch::ParamsParser, Middleware::AnonymousCache diff --git a/script/bench.rb b/script/bench.rb index 9df5522904a..661eb3e7976 100644 --- a/script/bench.rb +++ b/script/bench.rb @@ -162,7 +162,8 @@ begin append = "?api_key=#{api_key}&api_username=admin1" # asset precompilation is a dog, wget to force it - run "wget http://127.0.0.1:#{@port}/ -o tmp/test.html" + run "wget http://127.0.0.1:#{@port}/ -o test.html" + `rm test.html` tests = [ ["home", "/"],