Removed debug statements.

- Legacy-Id: 13229
This commit is contained in:
Henrik Levkowetz 2017-04-18 14:12:10 +00:00
parent 3d6fed4b5b
commit 1e98833863

View file

@ -443,15 +443,11 @@ class DocumentInfo(models.Model):
key = name.split('.')[0]
html = cache.get(key)
if not html:
debug.say('cache miss for %s' % key)
# The path here has to match the urlpattern for htmlized
# documents in order to produce correct intra-document links
html = markup(text, path=settings.HTMLIZER_URL_PREFIX)
if html:
debug.say('cache set for %s' % key)
cache.set(key, html, settings.HTMLIZER_CACHE_TIME)
else:
debug.say('cache hit for %s' % key)
return html
class Meta: