etwist/server.py
changeset 7619 0d0344fd5231
parent 7570 648bf83945a5
child 7620 bc2d690b97bf
--- a/etwist/server.py	Tue Jul 05 10:54:52 2011 +0200
+++ b/etwist/server.py	Tue Jul 05 12:09:53 2011 +0200
@@ -174,7 +174,9 @@
     def __init__(self, config, paths):
         _, ext = osp.splitext(paths[0])
         self._resources = {}
-        # create a unique / predictable filename
+        # create a unique / predictable filename. We don't consider cubes
+        # version since uicache is cleared at server startup, and file's dates
+        # are checked in debug mode
         fname = 'cache_concat_' + hashlib.md5(';'.join(paths)).hexdigest() + ext
         filepath = osp.join(config.appdatahome, 'uicache', fname)
         LongTimeExpiringFile.__init__(self, config, filepath)
@@ -223,6 +225,7 @@
                     return False
         return True
 
+
 class CubicWebRootResource(resource.Resource):
     def __init__(self, config, vreg=None):
         resource.Resource.__init__(self)