docbrown/lib/tasks/cache.rake
Molly Struve cc694146e6
Optimization:Move Initialization CacheBust to Background Worker (#10311)
* Optimization:Move Initilization CacheBust to Background Worker

* lower cache bust to 5 min and then bust shell version last

* moving back to 10 min after looking at recent deploy data
2020-09-18 11:30:47 -04:00

10 lines
569 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
BustCachePathWorker.set(queue: :high_priority).perform_in(10.minutes, "/shell_top")
BustCachePathWorker.set(queue: :high_priority).perform_in(10.minutes, "/shell_bottom")
BustCachePathWorker.set(queue: :high_priority).perform_in(10.minutes, "/onboarding")
BustCachePathWorker.set(queue: :high_priority).perform_in(10.minutes, "/async_info/shell_version")
end
end