Skip to content

Commit

Permalink
increase doi count cache to 24 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Sep 7, 2018
1 parent 59718e3 commit c70a5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/cacheable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c70a5e1

Please sign in to comment.