Fix format metadata cache not being invalidated when updating path

This commit is contained in:
Kovid Goyal 2021-05-13 21:09:24 +05:30
parent 73a312dd64
commit e1f1353247
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)