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>2017-07-11 15:19:43 +0300
committerSean McGivern <sean@gitlab.com>2017-07-19 12:21:18 +0300
commitc57ae83dcfaeff9c358b5f896202e04a86ad6ef3 (patch)
tree183f7f8c2b37a760964afcb939f1db9cd20c59f8 /app/helpers/issuables_helper.rb
parent11f9ac0a48b62cef25eedede4c1819964f08d5ce (diff)
Fix issuable state counter cache keys
These cache a hash of counts by state, so the state isn't needed in the key itself.
Diffstat (limited to 'app/helpers/issuables_helper.rb')
-rw-r--r--app/helpers/issuables_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb
index d0c518f81f7..425af547330 100644
--- a/app/helpers/issuables_helper.rb
+++ b/app/helpers/issuables_helper.rb
@@ -235,7 +235,7 @@ module IssuablesHelper
def issuables_count_for_state(issuable_type, state, finder: nil)
finder ||= public_send("#{issuable_type}_finder")
- cache_key = finder.state_counter_cache_key(state)
+ cache_key = finder.state_counter_cache_key
@counts ||= {}
@counts[cache_key] ||= Rails.cache.fetch(cache_key, expires_in: 2.minutes) do