Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/post_receive.rb')
-rw-r--r--app/workers/post_receive.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/workers/post_receive.rb b/app/workers/post_receive.rb
index 5178fabb2d8..ddf112e648c 100644
--- a/app/workers/post_receive.rb
+++ b/app/workers/post_receive.rb
@@ -77,12 +77,8 @@ class PostReceive # rubocop:disable Scalability/IdempotentWorker
return false unless user
- # At the moment, we only expires the repository caches.
- # In the future we might need to call ProjectCacheWorker
- # (or the custom class we create) to update the snippet
- # repository size or any other key.
- # We might also need to update the repository statistics.
expire_caches(post_received, snippet.repository)
+ snippet.repository.expire_statistics_caches
end
# Expire the repository status, branch, and tag cache once per push.