Invalidate cover caches when deleting books

This commit is contained in:
Kovid Goyal 2013-08-09 13:44:36 +05:30
parent 618aa68822
commit 7fe8d334d4

View File

@ -1351,6 +1351,9 @@ class Cache(object):
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):