diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-03 21:10:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-03 21:10:18 +0300 |
commit | 9be457ffc1727f6a942a68c16e47ca0bcaa2f64a (patch) | |
tree | 5c006f5e268f88603a69da3c1c3056030b0afca7 /app/services/projects | |
parent | 388e0fbbd00e04a10e3ac1084945aa18a781c40c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/projects')
-rw-r--r-- | app/services/projects/update_statistics_service.rb | 4 |
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 |