From 75dcc201873b6d49715d4661e8361cf65b9bc838 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Tue, 8 Jul 2014 07:06:44 -0300 Subject: removed cache busting upon change of the moderation mode --- askbot/conf/moderation.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/askbot/conf/moderation.py b/askbot/conf/moderation.py index f0e6d681..a9e12afe 100644 --- a/askbot/conf/moderation.py +++ b/askbot/conf/moderation.py @@ -8,13 +8,6 @@ from askbot.deps.livesettings import StringValue from django.core.cache import cache from django.utils.translation import ugettext_lazy as _ -def empty_cache_callback(old_value, new_value): - """used to clear cache on change of certain values""" - if old_value != new_value: - #todo: change this to warmup cache - cache.clear() - return new_value - MODERATION = ConfigurationGroup( 'MODERATION', _('Content moderation'), @@ -34,7 +27,6 @@ settings.register( choices=CONTENT_MODERATION_MODE_CHOICES, default='flags', description=_('Content moderation method'), - update_callback=empty_cache_callback, help_text=_("Audit is made after the posts are published, pre-moderation prevents publishing before moderator's decision.") ) ) -- cgit v1.2.3-1-g7c22