By Default, Rails.cache will write log when updating cache. But if we don’t want it to log all those records, we can use shut it up, by enclosing code with a Rails.cache.mute :
Rails.cache.mute
Rails.cache.mute do Rails.cache.write("FOO", 'bar') end
Very easy!