summaryrefslogtreecommitdiff
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2016-11-28 03:34:12 +0000
committerDouwe Maan <douwe@gitlab.com>2016-11-28 03:34:12 +0000
commitd8f75233686fe20bff26599704fbcb235f7bb43b (patch)
tree15a38c9b174b279bac9f917c991e29b0967b9622 /app/models/issue.rb
parenteff2404785f58241f947bd7388564f49119d517d (diff)
parent0ba03d7eb1d80e019b9b8266f0e14356d32e7d69 (diff)
downloadgitlab-ce-d8f75233686fe20bff26599704fbcb235f7bb43b.tar.gz
Merge branch 'events-cache-invalidation' into 'master'
Remove caching of events data This MR removes the caching of events data as this was deemed unnecessary while increasing load on the database. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6578#note_18864037 and 5371da341e9d7768ebab8e159b3e2cc8fad1d827 for more information. See merge request !6578
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index dd0cb75f9a8..fbf07040301 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -182,18 +182,6 @@ class Issue < ActiveRecord::Base
branches_with_iid - branches_with_merge_request
end
- # Reset issue events cache
- #
- # Since we do cache @event we need to reset cache in special cases:
- # * when an issue is updated
- # Events cache stored like events/23-20130109142513.
- # The cache key includes updated_at timestamp.
- # Thus it will automatically generate a new fragment
- # when the event is updated because the key changes.
- def reset_events_cache
- Event.reset_event_cache_for(self)
- end
-
# To allow polymorphism with MergeRequest.
def source_project
project