Commit 2cce73a2 authored by Rémy Coutable's avatar Rémy Coutable

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

EE: Use the same way to invalidate cache from EE

See merge request !2134
parents 12f573aa 99976567
...@@ -236,11 +236,9 @@ class IssuableBaseService < BaseService ...@@ -236,11 +236,9 @@ class IssuableBaseService < BaseService
) )
if old_assignees != issuable.assignees if old_assignees != issuable.assignees
## EE-specific
new_assignees = issuable.assignees.to_a new_assignees = issuable.assignees.to_a
affected_assignees = (old_assignees + new_assignees) - (old_assignees & new_assignees) affected_assignees = (old_assignees + new_assignees) - (old_assignees & new_assignees)
invalidate_cache_counts(affected_assignees.compact, issuable) invalidate_cache_counts(affected_assignees.compact, issuable)
## EE-specific
end end
after_update(issuable) 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