summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-11-28 15:06:40 +0000
committerSean McGivern <sean@gitlab.com>2016-12-01 12:24:56 +0000
commite1e372bab0590291d97cf35690439426a8e89e90 (patch)
treea091f26c47a0ffd3465b46238075fd90c0428573
parent5eff32946e163455caa00ae67de541f7231759b5 (diff)
downloadgitlab-ce-e1e372bab0590291d97cf35690439426a8e89e90.tar.gz
Don't include ignored params in cache key
-rw-r--r--app/helpers/issuables_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb
index b85e3f9e60e..8231f8fa334 100644
--- a/app/helpers/issuables_helper.rb
+++ b/app/helpers/issuables_helper.rb
@@ -192,6 +192,7 @@ module IssuablesHelper
opts = params.with_indifferent_access
opts[:state] = state
opts.except!(*IRRELEVANT_PARAMS_FOR_CACHE_KEY)
+ opts.delete_if { |_, value| value.blank? }
hexdigest(['issuables_count', issuable_type, opts.sort].flatten.join('-'))
end