From c70a5e1c1c1586e0bef82472121f16da8b82b3fb Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Fri, 7 Sep 2018 16:51:32 +0200 Subject: [PATCH] increase doi count cache to 24 hours --- app/models/concerns/cacheable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/cacheable.rb b/app/models/concerns/cacheable.rb index c864b3434..437a50490 100644 --- a/app/models/concerns/cacheable.rb +++ b/app/models/concerns/cacheable.rb @@ -3,7 +3,7 @@ module Cacheable included do def cached_doi_count(options={}) - Rails.cache.fetch("cached_doi_count/#{id}", expires_in: 6.hours, force: options[:force]) do + Rails.cache.fetch("cached_doi_count/#{id}", expires_in: 24.hours, force: options[:force]) do return [] if Rails.env.test? if self.class.name == "Provider" && symbol != "ADMIN"