Tweak/fix the attachment caching
This commit is contained in:
parent
d544cf893e
commit
619044d285
3 changed files with 10 additions and 3 deletions
5
app.py
5
app.py
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue