about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-06-03 21:40:47 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-03 14:40:47 +0200
commit336f0b08233b847cdcd609e764db17f8b3a8d13d (patch)
treec2ccc71c97b951c270173b01dfcba2b8ddbc115f /app/services
parent3ea3f24a021254675ffc8472ee0cd7fdb54798ba (diff)
Remove WarmCacheService (#3527)
WarmCacheService is no longer used (removed with 5442083b3c44c731679fc489568bf7f70a807a39 ).
Diffstat (limited to 'app/services')
-rw-r--r--app/services/warm_cache_service.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/services/warm_cache_service.rb b/app/services/warm_cache_service.rb
deleted file mode 100644
index 091a471ff..000000000
--- a/app/services/warm_cache_service.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-# frozen_string_literal: true
-
-class WarmCacheService < BaseService
-  def call(cacheable)
-    full_item = cacheable.class.where(id: cacheable.id).with_includes.first
-    Rails.cache.write(cacheable.cache_key, full_item)
-  end
-end