summaryrefslogtreecommitdiff
path: root/lib/gitlab/cleanup/orphan_lfs_file_references.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/cleanup/orphan_lfs_file_references.rb')
-rw-r--r--lib/gitlab/cleanup/orphan_lfs_file_references.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/cleanup/orphan_lfs_file_references.rb b/lib/gitlab/cleanup/orphan_lfs_file_references.rb
index a9961cb8968..3df243e319e 100644
--- a/lib/gitlab/cleanup/orphan_lfs_file_references.rb
+++ b/lib/gitlab/cleanup/orphan_lfs_file_references.rb
@@ -35,6 +35,8 @@ module Gitlab
count += relation.delete_all
end
+ ProjectCacheWorker.perform_async(project.id, [], [:lfs_objects_size])
+
log_info("Removed invalid references: #{count}")
end
end