Disable cache for a bit to see if its killing the build

This commit is contained in:
Sam 2014-01-09 16:08:59 +11:00
parent 1c3fc39525
commit d4cc367a6f
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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", "/"],