cartodb-4.29/lib/tasks/cache_maintenance.rake
2020-06-15 10:58:47 +08:00

9 lines
237 B
Ruby

namespace :cartodb do
namespace :cache do
desc "invalidate Varnish surrogate key"
task :invalidate_surrogate_key, [:key] => :environment do |t, args|
CartoDB::Varnish.new.purge_surrogate_key(args[:key])
end
end
end