문제

I'm trying to develop application with caching in development mode, but development.log spammed is heavily by cache logs. I'm use dalli, and I know, that dalli has silence! method (https://github.com/mperham/dalli/commit/892020fbc73613ccc84412ce04b85b7fda645e63), but how to use this method?

I found some old instructions, where it is suggested to call in on config.cache_store, but it is a symbol, and don't has this method:

config.cache_store = :dalli_store
config.cache_store.silence!

Throws exception.

도움이 되었습니까?

해결책

Try calling #silence! on Rails.cache

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top