How to cause silence! on dalli cache_store?

I am trying to develop an application with caching in development mode, but spam development.log is highly dependent on cache logs. I 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 suggesting going to config.cache_store , but this is a symbol and does not have this method:

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

Throws an exception.

+4
source share
1 answer

Try calling #silence! on Rails.cache

+11
source

Source: https://habr.com/ru/post/1441736/


All Articles