Commits

Anonymous committed 7ed707d

Fix cache clear() to ignore suffix.

Comments (0)

Files changed (1)

         for fn in os.listdir(self.location):
             if os.path.isdir(fn):
                 continue
-            if fn.startswith(self.fnprefix) and fn.endswith(self.fnsuffix):
+            if fn.startswith(self.fnprefix):
                 log.debug('deleted: %s', fn)
                 os.remove(os.path.join(self.location, fn))