From e1f13532471d7aeab1975941d632f477e0243771 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 13 May 2021 21:09:24 +0530 Subject: [PATCH] Fix format metadata cache not being invalidated when updating path --- src/calibre/db/cache.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/db/cache.py b/src/calibre/db/cache.py index f244c3405b..27fe673254 100644 --- a/src/calibre/db/cache.py +++ b/src/calibre/db/cache.py @@ -1242,6 +1242,7 @@ class Cache(object): except IndexError: author = _('Unknown') self.backend.update_path(book_id, title, author, self.fields['path'], self.fields['formats']) + self.format_metadata_cache.pop(book_id, None) if mark_as_dirtied: self._mark_as_dirty(book_ids)