10 lines
407 B
Ruby
10 lines
407 B
Ruby
namespace :cache do
|
|
desc "Enqueue BustCachePathWorker"
|
|
task enqueue_path_bust_workers: :environment do
|
|
# Trigger cache purges for globally-cached endpoints that could have changed
|
|
[30, 180, 600].each do |n|
|
|
BustCachePathWorker.set(queue: :high_priority).perform_in(n.seconds, "/")
|
|
BustCachePathWorker.set(queue: :high_priority).perform_in(n.seconds, "/onboarding")
|
|
end
|
|
end
|
|
end
|