From: Guillaume Pellerin Date: Fri, 12 Nov 2010 11:05:39 +0000 (+0100) Subject: modify image cache name X-Git-Tag: 1.1~486^2~20 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=fbdaf536c95fd67a06ed64741b7877efbd67880c;p=telemeta.git modify image cache name --- diff --git a/telemeta/web/base.py b/telemeta/web/base.py index 9cd8705a..2b545ff3 100644 --- a/telemeta/web/base.py +++ b/telemeta/web/base.py @@ -182,8 +182,8 @@ class WebView: if grapher.id() != grapher_id: raise Http404 - suffix = '_'.join([grapher_id, width, height]) - file = public_id + '.' + suffix + '.png' + size = width + '_' + height + file = '.'.join([public_id, grapher_id, size, 'png']) if not self.cache.exists(file): if item.file: