mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 13:33:12 +02:00
Invalidate cover caches when deleting books
This commit is contained in:
parent
618aa68822
commit
7fe8d334d4
1 changed files with 3 additions and 0 deletions
|
|
@ -1351,6 +1351,9 @@ def remove_books(self, book_ids, permanent=False):
|
|||
table.remove_books(book_ids, self.backend)
|
||||
self._search_api.discard_books(book_ids)
|
||||
self._clear_caches(book_ids=book_ids, template_cache=False, search_cache=False)
|
||||
for cc in self.cover_caches:
|
||||
for book_id in book_ids:
|
||||
cc.invalidate(book_id)
|
||||
|
||||
@read_api
|
||||
def author_sort_strings_for_books(self, book_ids):
|
||||
|
|
|
|||
Loading…
Reference in a new issue