1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Straightened out the blocks cache. Instead of having a single global threaded block cache in the app, there's just a cache path, and non-threaded caches are created when needed. Also, made Cache.clear() more robust (it will clear the cache even if the db is corrupted).

This commit is contained in:
Virgil Dupras
2010-01-14 16:14:26 +01:00
parent 06607aabb2
commit fc76a843d5
8 changed files with 58 additions and 45 deletions

View File

@@ -38,7 +38,7 @@ class PyDupeGuru(PyApp):
self.app.scanner.ignore_list.Clear()
def clearPictureCache(self):
self.app.scanner.cached_blocks.clear()
self.app.scanner.clear_picture_cache()
def doScan(self):
return self.app.start_scanning()