Initial commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
module VarnishCacheHandler
|
||||
def invalidate_varnish_cache(options = {})
|
||||
options[:regex] ||= '.*'
|
||||
CartoDB::Varnish.new.purge("#{database_name}#{options[:regex]}")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user