cartodb/app/models/varnish_cache_handler.rb
2020-06-15 10:58:47 +08:00

6 lines
179 B
Ruby

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