7 lines
187 B
Ruby
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
|