1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-18 09:07:40 +00:00

Implement delete thumbnail entry

Implement delete cache_dir on database change
This commit is contained in:
Ozzie Isaacs
2022-03-16 20:31:25 +01:00
parent d9a83e0638
commit 06e8845641
4 changed files with 29 additions and 5 deletions

View File

@@ -1074,3 +1074,6 @@ def get_download_link(book_id, book_format, client):
def clear_cover_thumbnail_cache(book_id):
WorkerThread.add(None, TaskClearCoverThumbnailCache(book_id))
def delete_thumbnail_cache():
WorkerThread.add(None, TaskClearCoverThumbnailCache(-1))