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

Include version in cache key for CachedRepresenter so that cache is properly invalidatd

Klaus Zanderse863c603e50c
diff --git a/lib/api/caching/cached_representer.rb b/lib/api/caching/cached_representer.rb
index a5959bd91ac..5c3b591ebd5 100644
--- a/lib/api/caching/cached_representer.rb
+++ b/lib/api/caching/cached_representer.rb
@@ -190,7 +190,7 @@ module API
cacheable << json_key_parts_of_represented
cacheable << json_key_dependencies
- OpenProject::Cache::CacheKey.expand(cacheable.flatten.compact)
+ OpenProject::Cache::CacheKey.expand(OpenProject::Cache::CacheKey.key(cacheable.flatten.compact))
end
def json_key_part_represented