From: Yamagishi Kazutoshi Date: Sat, 3 Jun 2017 12:40:47 +0000 (+0900) Subject: Remove WarmCacheService (#3527) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=336f0b08233b847cdcd609e764db17f8b3a8d13d;p=mastodon.git Remove WarmCacheService (#3527) WarmCacheService is no longer used (removed with 5442083b3c44c731679fc489568bf7f70a807a39 ). --- 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