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