[#45543] Allow expires_in parameter for OpenProject::Cache.fetch

https://community.openproject.org/work_packages/45543
pull/11855/head
Wieland Lindenthal 2 years ago
parent 15d468de52
commit 35eb0e01ad
No known key found for this signature in database
GPG Key ID: 7ACCABE64832A0C6
  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