cartodb-4.42/app/models/carto/helpers/varnish_cache_handler.rb
2024-04-06 05:25:13 +00:00

7 lines
187 B
Ruby

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