diff --git a/darc/cache.py b/darc/cache.py index 9f1559d79..d7753c96f 100644 --- a/darc/cache.py +++ b/darc/cache.py @@ -122,6 +122,7 @@ def sync(self): """ self.begin_txn() print 'Initializing cache...' + self.chunks.clear() for id in self.store.list(NS_ARCHIVE_CHUNKS): magic, data, hash = self.keychain.decrypt(self.store.get(NS_ARCHIVE_CHUNKS, id)) assert magic == PACKET_ARCHIVE_CHUNKS