Tweak/fix the attachment caching

This commit is contained in:
Thomas Sileo
2018-07-24 23:58:13 +02:00
parent d544cf893e
commit 619044d285
3 changed files with 10 additions and 3 deletions

5
app.py
View File

@@ -225,8 +225,9 @@ def _get_file_url(url, size, kind):
_GRIDFS_CACHE[k] = u
return u
MEDIA_CACHE.cache(url, kind)
return _get_file_url(url, size, kind)
# MEDIA_CACHE.cache(url, kind)
app.logger.error("cache not available for {url}/{size}/{kind}")
return url
@app.template_filter()