module VarnishCacheHandler def invalidate_varnish_cache(options = {}) options[:regex] ||= '.*' CartoDB::Varnish.new.purge("#{database_name}#{options[:regex]}") end end