Commit eccd8f1d authored by Joseph Wilhelm's avatar Joseph Wilhelm

Using the BOTSCOUT_CACHE_TIMEOUT setting

parent e30e9baf
......@@ -68,7 +68,7 @@ class BotScoutForm(object):
hit_data['botscout:mail:%s' % untested['mail']] = int(mail_hits)
if 'name' in untested:
hit_data['botscout:name:%s' % untested['name']] = int(name_hits)
bot_cache.set_many(hit_data)
bot_cache.set_many(hit_data, BOTSCOUT_CACHE_TIMEOUT)
if any(hit_data.values()):
raise forms.ValidationError(self.error_messages['botscout'])
except urllib2.URLError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment