module Shellac module Actions def purge regex, recursive=false, hosts=nil return unless ::ActionController::Base.perform_caching Cache.instance.purge regex, recursive, hosts end end end