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

Improve cache key method comment

Dombi Attila4c2f5f340de4
diff --git a/lib_static/plugins/acts_as_customizable/lib/acts_as_customizable.rb b/lib_static/plugins/acts_as_customizable/lib/acts_as_customizable.rb
index 7b94e34a5f2..a9131efd084 100644
--- a/lib_static/plugins/acts_as_customizable/lib/acts_as_customizable.rb
+++ b/lib_static/plugins/acts_as_customizable/lib/acts_as_customizable.rb
@@ -130,11 +130,11 @@ module Redmine
end
end
- # Returns the cache key for caching @custom_field_values_cache.
+ # Override to extend the cache key for caching @custom_field_values_cache.
#
- # In certain cases, the implementing models have a changing list of custom field values
- # depending on certain attributes. By overriding this method, we can include the
- # dependent attributes in the cache key, providing a more flexible key caching mechanism.
+ # In some cases, the implementing class has a changing list of custom field values
+ # depending on certain attributes. When those attributes are changed, the cache can
+ # be kept up to date by including them in the overriden custom_field_cache_key method.
#
# i.e.: The work package custom field values are changing based on the project_id and type_id.
# The only way to keep the cache updated is to include those ids in the cache key.