diff options
author | Sean McGivern <sean@gitlab.com> | 2017-07-11 17:12:33 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-07-19 10:21:20 +0100 |
commit | 0e488ef70ab2608847423201e957693745f1e3b1 (patch) | |
tree | 1b7a329505c1a3026a777258040a3f5be9870561 /app/services/issues/reopen_service.rb | |
parent | b3a588bccaaa078a81e8ce322d75ee167f642e13 (diff) | |
download | gitlab-ce-0e488ef70ab2608847423201e957693745f1e3b1.tar.gz |
Clear issuable counter caches on updateclear-issuable-count-cache-for-states
When an issuable's state changes, or one is created, we should clear the cache
counts for a user's assigned issuables, and also the project-wide caches for
this user type.
Diffstat (limited to 'app/services/issues/reopen_service.rb')
-rw-r--r-- | app/services/issues/reopen_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/issues/reopen_service.rb b/app/services/issues/reopen_service.rb index 80ea6312768..73b2e85cba3 100644 --- a/app/services/issues/reopen_service.rb +++ b/app/services/issues/reopen_service.rb @@ -8,7 +8,7 @@ module Issues create_note(issue) notification_service.reopen_issue(issue, current_user) execute_hooks(issue, 'reopen') - invalidate_cache_counts(issue.assignees, issue) + invalidate_cache_counts(issue, users: issue.assignees) end issue |