Don't include ignored params in cache key

This commit is contained in:
Sean McGivern 2016-11-28 15:06:40 +00:00
parent 5eff32946e
commit e1e372bab0
1 changed files with 1 additions and 0 deletions

View File

@ -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