Drop caches after having processed folders.
This enhances a lot memory consumption when you have many folders to process. Signed-off-by: Giovanni Mascellani <mascellani@poisson.phc.unipi.it>
This commit is contained in:

committed by
Nicolas Sebrecht

parent
63e499c6f2
commit
29e9b7ab39
@ -491,3 +491,7 @@ def syncfolder(account, remotefolder, quick):
|
||||
ui.error(e, msg = "ERROR in syncfolder for %s folder %s: %s" % \
|
||||
(account, remotefolder.getvisiblename(),
|
||||
traceback.format_exc()))
|
||||
finally:
|
||||
for folder in ["statusfolder", "localfolder", "remotefolder"]:
|
||||
if folder in locals():
|
||||
locals()[folder].dropmessagelistcache()
|
||||
|
Reference in New Issue
Block a user