about summary refs log tree commit diff
path: root/app/workers/distribution_worker.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-05 17:24:18 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-05 17:24:18 +0100
commit19b9e1e2c3d621b5f9f2367980dae62648fe22fa (patch)
tree5753e470b8d797978b0464dbe2c0f88f8b7604c4 /app/workers/distribution_worker.rb
parent6fa4e01139a8420d96f9a3c1fcf2b3c5bd0b38a9 (diff)
Preheat status cache
Diffstat (limited to 'app/workers/distribution_worker.rb')
-rw-r--r--app/workers/distribution_worker.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/workers/distribution_worker.rb b/app/workers/distribution_worker.rb
index f423d43ae..f4e738d80 100644
--- a/app/workers/distribution_worker.rb
+++ b/app/workers/distribution_worker.rb
@@ -4,7 +4,10 @@ class DistributionWorker
   include Sidekiq::Worker
 
   def perform(status_id)
-    FanOutOnWriteService.new.call(Status.find(status_id))
+    status = Status.find(status_id)
+
+    FanOutOnWriteService.new.call(status)
+    WarmCacheService.new.call(status)
   rescue ActiveRecord::RecordNotFound
     true
   end