fix up cache key
authorTero Marttila <terom@fixme.fi>
Tue, 26 Jan 2010 01:37:16 +0200
changeset 105 30c091643f75
parent 104 b5ae988c78b8
child 106 26f10ed59c8e
fix up cache key
pngtile/render.py
--- a/pngtile/render.py	Tue Jan 26 01:37:01 2010 +0200
+++ b/pngtile/render.py	Tue Jan 26 01:37:16 2010 +0200
@@ -186,8 +186,7 @@
     
     if cache :
         # cache key
-        # XXX: need a better id for the image..
-        key = "tl_%d:%d_%d:%d:%d_%s" % (x, y, width, height, zl, id(image))
+        key = "tl_%d:%d_%d:%d:%d_%s" % (x, y, width, height, zl, image.path)
         
         # lookup
         data = cache.get(key)