From 333f0af0ec107599f90dc57460f6f2343d608757 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Wed, 18 Nov 2020 22:01:56 +0100 Subject: [PATCH] FIX: Cached badge_count isn't updated after backfilling badges (#11281) --- app/jobs/scheduled/badge_grant.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/jobs/scheduled/badge_grant.rb b/app/jobs/scheduled/badge_grant.rb index 8e409392917..e9ad67a9b1d 100644 --- a/app/jobs/scheduled/badge_grant.rb +++ b/app/jobs/scheduled/badge_grant.rb @@ -23,6 +23,7 @@ module Jobs BadgeGranter.revoke_ungranted_titles! UserBadge.ensure_consistency! # Badge granter sometimes uses raw SQL, so hooks do not run. Clean up data + UserStat.update_distinct_badge_count end end