Merge pull request #11855 from opf/code-maintenance/45543-allow-expires_in-parameter-for-openprojectcachefetch

pull/11864/head
Christophe Bliard 2 years ago committed by GitHub
commit 0b6acb28ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      lib/open_project/cache.rb

@ -30,8 +30,8 @@ require_relative 'cache/cache_key'
module OpenProject
module Cache
def self.fetch(*parts, &)
Rails.cache.fetch(CacheKey.key(*parts), &)
def self.fetch(*parts, **options, &)
Rails.cache.fetch(CacheKey.key(*parts), **options, &)
end
def self.clear

Loading…
Cancel
Save