Skip to content

Commit

Permalink
Merge pull request #1789 from MTG/iss1759
Browse files Browse the repository at this point in the history
Properly invalidate template caches in  moderation
  • Loading branch information
ffont authored Oct 7, 2024
2 parents 7d406e8 + 82ee458 commit e6186e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sounds/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ def invalidate_template_caches(self):
for is_explicit in [True, False]:
invalidate_template_cache("display_sound", self.id, is_authenticated, is_explicit)

for player_size in ['small', 'middle', 'big_no_info', 'small_no_info', 'minimal']:
for player_size in ['small', 'middle', 'big_no_info', 'small_no_info', 'minimal', 'moderation']:
for is_authenticated in [True, False]:
invalidate_template_cache("bw_display_sound", self.id, player_size, is_authenticated)

Expand Down

0 comments on commit e6186e8

Please sign in to comment.