Skip to content

Commit

Permalink
Disable cache for a bit to see if its killing the build
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Jan 9, 2014
1 parent 1c3fc39 commit d4cc367
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/initializers/99-anon-cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
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
Expand Down
3 changes: 2 additions & 1 deletion script/bench.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ def bench(path)
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", "/"],
Expand Down

0 comments on commit d4cc367

Please sign in to comment.