From 336f0b08233b847cdcd609e764db17f8b3a8d13d Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Sat, 3 Jun 2017 21:40:47 +0900 Subject: [PATCH] Remove WarmCacheService (#3527) WarmCacheService is no longer used (removed with 5442083b3c44c731679fc489568bf7f70a807a39 ). --- app/services/warm_cache_service.rb | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 app/services/warm_cache_service.rb diff --git a/app/services/warm_cache_service.rb b/app/services/warm_cache_service.rb deleted file mode 100644 index 091a471ffa1..00000000000 --- 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