Commit 5b7692d0 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'backport-ee-cache-invalidation-to-ce' into 'master'

Use the same way to invalidate cache from EE

See merge request !12187
parents b541adc5 c791ca7b
......@@ -236,8 +236,9 @@ class IssuableBaseService < BaseService
)
if old_assignees != issuable.assignees
assignees = old_assignees + issuable.assignees.to_a
invalidate_cache_counts(assignees.compact, issuable)
new_assignees = issuable.assignees.to_a
affected_assignees = (old_assignees + new_assignees) - (old_assignees & new_assignees)
invalidate_cache_counts(affected_assignees.compact, issuable)
end
after_update(issuable)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment