diff MoinMoin/caching.py @ 1681:fc03cd8ff0f3

avoid accessing invalid page revisions, tune caching code (ported from 1.5)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 19 Nov 2006 17:43:01 +0100
parents c0cb0884f7ec
children 6dd2e29acffe
line wrap: on
line diff
--- a/MoinMoin/caching.py	Sun Nov 19 17:36:50 2006 +0100
+++ b/MoinMoin/caching.py	Sun Nov 19 17:43:01 2006 +0100
@@ -76,8 +76,9 @@
             return 0
 
     def needsUpdate(self, filename, attachdir=None):
-        if not self.exists():
-            return 1
+        # following code is not necessary. will trigger exception and give same result
+        #if not self.exists():
+        #    return 1
 
         try:
             ctime = os.path.getmtime(self._filename())