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/services/projects/update_statistics_service.rb')
-rw-r--r--app/services/projects/update_statistics_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/projects/update_statistics_service.rb b/app/services/projects/update_statistics_service.rb
index 71f5a8e633d..9b979f6ed68 100644
--- a/app/services/projects/update_statistics_service.rb
+++ b/app/services/projects/update_statistics_service.rb
@@ -5,7 +5,7 @@ module Projects
include ::Gitlab::Utils::StrongMemoize
STAT_TO_CACHED_METHOD = {
- repository_size: :size,
+ repository_size: [:size, :recent_objects_size],
commit_count: :commit_count
}.freeze
@@ -37,7 +37,7 @@ module Projects
def method_caches_to_expire
strong_memoize(:method_caches_to_expire) do
- statistics.map { |stat| STAT_TO_CACHED_METHOD[stat] }.compact
+ statistics.flat_map { |stat| STAT_TO_CACHED_METHOD[stat] }.compact
end
end