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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Don't cache only on user
Oliver Günther2234fee59d5b
diff --git a/app/models/attribute_help_text.rb b/app/models/attribute_help_text.rbindex fb0f2f30aa2..f9797bfa4d3 100644--- a/app/models/attribute_help_text.rb+++ b/app/models/attribute_help_text.rb@@ -30,7 +30,9 @@ class AttributeHelpText < ApplicationRecordacts_as_attachable viewable_by_all_users: truedef self.cached(user)- OpenProject::Cache.fetch([name, user]) { visible(user).select(:id, :attribute_name).index_by(&:attribute_name) }+ RequestStore.fetch(name) do+ visible(user).select(:id, :attribute_name).index_by(&:attribute_name)+ endenddef self.for(model)