Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-11-28 18:06:40 +0300
committerSean McGivern <sean@gitlab.com>2016-12-01 15:24:56 +0300
commite1e372bab0590291d97cf35690439426a8e89e90 (patch)
treea091f26c47a0ffd3465b46238075fd90c0428573
parent5eff32946e163455caa00ae67de541f7231759b5 (diff)
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