feat: Clearing cache automatically after quitting e read session

This commit is contained in:
Julien Froidefond
2025-02-28 17:44:22 +01:00
parent 2ef5eee726
commit 13492cea84
5 changed files with 45 additions and 1 deletions

View File

@@ -13,6 +13,9 @@ export function ClientBookWrapper({ book, pages }: ClientBookWrapperProps) {
const router = useRouter();
const handleCloseReader = () => {
fetch(`/api/komga/cache/clear/${book.libraryId}/${book.seriesId}`, {
method: "POST",
});
router.back();
};