Suppressing and disabling cache miss output when using Dragonfly
Regards ♨ – Minimul
Rack-cache from Dragonfly
use Rack::Cache use Dragonfly::Middleware
Rack-cache outputs to $stderr and its
verbose setting is
Beware of using quick setup
If you are using the quick Dragonfly setup in
require 'dragonfly/rails/images' based off of the docs you may not be having success with suppressing the cache-miss messages using some of the common online prescriptions. Using the quick setup inserts all of the defaults as listed in the section "Setting up the more explicit way". If you try overriding the
verbose setting you may not have much success because the
require 'dragonfly/rails/images' will keep inserting a Rack-cache with
verbose: true into the middleware.
Just use the Dragonfly explicit setup
Simply use the explicit setup and mark
verbose: Rails.env.test? ? false : true. Don't use the quick setup.