Use the same way to invalidate cache in EE
Because it doesn't really hurt and could reduce conflicts
Discussion:
5020e1a779 (note_32403646)
This commit is contained in:
parent
039c375372
commit
c791ca7bc2
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue