summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2014-07-08 07:06:44 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2014-07-08 07:06:44 -0300
commit75dcc201873b6d49715d4661e8361cf65b9bc838 (patch)
tree64f721f24e055f4ee94ea064b8049a6bcc113944
parent85a833860e8915474abbbcb888ab99a1c2300e2c (diff)
downloadaskbot-75dcc201873b6d49715d4661e8361cf65b9bc838.tar.gz
askbot-75dcc201873b6d49715d4661e8361cf65b9bc838.tar.bz2
askbot-75dcc201873b6d49715d4661e8361cf65b9bc838.zip
removed cache busting upon change of the moderation mode
-rw-r--r--askbot/conf/moderation.py8
1 files changed, 0 insertions, 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.")
)
)