Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

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

Wieland Lindenthal35eb0e01ada8
diff --git a/lib/open_project/cache.rb b/lib/open_project/cache.rb
index 12334749ed7..3afa2e72ae6 100644
--- a/lib/open_project/cache.rb
+++ b/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