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

baseline api: add timestamps to cache key

Sebastian Fiedlschusteracb05262d1d2
diff --git a/lib/api/v3/work_packages/work_package_representer.rb b/lib/api/v3/work_packages/work_package_representer.rb
index 2246f6d2fe6..095961688f7 100644
--- a/lib/api/v3/work_packages/work_package_representer.rb
+++ b/lib/api/v3/work_packages/work_package_representer.rb
@@ -354,6 +354,8 @@ module API
'timestamp': timestamps.last.to_s
}
}
+ },
+ uncacheable: true
property :id,
render_nil: true
@@ -501,7 +503,7 @@ module API
attrs
end,
embedded: true,
- uncachable: true
+ uncacheable: true
property :attributes_by_timestamp,
as: :attributesByTimestamp,
@@ -530,7 +532,7 @@ module API
end
end,
embedded: true,
- uncachable: true
+ uncacheable: true
associated_resource :category
@@ -736,6 +738,7 @@ module API
I18n.locale,
json_key_representer_parts,
represented.cache_checksum,
+ timestamps,
Setting.work_package_done_ratio,
Setting.feeds_enabled?]
end