Skip to content

Commit

Permalink
Merge pull request #144 from ractf/hotfix/challenge-mod-index-expiry
Browse files Browse the repository at this point in the history
Fix challenge_mod_index expiring and breaking everything.
  • Loading branch information
david-cooke authored Jul 27, 2021
2 parents 4075003 + 457b0c6 commit 652071d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/challenge/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
@receiver([post_save, post_delete], sender=Category)
def challenge_cache_invalidate(sender, instance, **kwargs):
new_index = caches["default"].get("challenge_mod_index", 0) + 1
caches["default"].set("challenge_mod_index", new_index)
caches["default"].set("challenge_mod_index", new_index, timeout=None)

0 comments on commit 652071d

Please sign in to comment.