Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Fix sweeper
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwebb76 committed Aug 3, 2023
1 parent 117f61b commit 283a490
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/sweepers/statistics_sweeper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def clear_group_caches(associated_users)
associated_groups =
GroupMember.includes(:group).where(user_id: associated_users.map(&:id)).map(&:group).uniq
associated_groups.each do |group|
cache.clear(group_statistics_cache_key(group))
cache.clear(group_calibration_scores_cache_key(group))
cache.clear(group_leaderboard_cache_key(group))
cache.delete(group_statistics_cache_key(group))
cache.delete(group_calibration_scores_cache_key(group))
cache.delete(group_leaderboard_cache_key(group))
end
end
end

0 comments on commit 283a490

Please sign in to comment.