From 23e06a09cb63f7f5fc10cdef69184f16e29c041e Mon Sep 17 00:00:00 2001 From: shortcutme Date: Sun, 4 Sep 2016 17:43:57 +0200 Subject: [PATCH] Remove deleted files from hashfield --- src/Content/ContentManager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Content/ContentManager.py b/src/Content/ContentManager.py index 10935545..ff95770b 100644 --- a/src/Content/ContentManager.py +++ b/src/Content/ContentManager.py @@ -99,6 +99,7 @@ class ContentManager(object): changed.append(content_inner_dir + relative_path) # Download new file elif old_hash != new_hash and not self.site.settings.get("own"): try: + self.hashfield.removeHash(old_hash) self.site.storage.delete(file_inner_path) self.log.debug("Deleted changed optional file: %s" % file_inner_path) except Exception, err: