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