ruby on rails 3 - How to disable the asset request log like cache: [POST /advanced_personality/1] in test env? -


using rails 3.2.11, , running acceptance spec:

bundle exec rspec ./spec/acceptance/sparkmaps_spec.rb:429 

while runs, stdout shows long list of asset like:

cache: [get /users/sign_up] miss cache: [get /assets/head.js] miss, store cache: [get /assets/application.css] miss, store cache: [get /assets/application.js] miss, store cache: [get /assets/bt-signin-from-signup.png] miss, store cache: [get /assets/sparkon-logo.png] miss, store cache: [get /assets/myriadpro-regular.otf] miss, store cache: [post /users] invalidate, pass cache: [get /home] miss cache: [get /sparkmaps/new?solo=true&type=student] miss cache: [get /assets/sparkmap_images/overview_picture_frame.png] miss, store cache: [get /assets/sparkmap_images/checkbox_off.jpg] miss, store cache: [get /assets/down_arrow.png] miss, store cache: [get /media/w1siziisijetm2nkztjmmtitogu4nc00mje0lwe4yzktndu2ztrlmzzkmtdilte1mhgxntaucg5nil0swyjwiiwidgh1bwiilciznhgzncjdxq?sha=16599154] miss, store 

which painful while tracing.

how switch off?

you can disable cache log terminal environment.rb file :

config.cache_store.silence! 

or can use :

try calling #silence! on rails.cache 

how call silence! on dalli cache_store?

hope helps !


Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -