refactor: remove caching-related API endpoints and configurations, update preferences structure, and clean up unused services
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 7m22s

This commit is contained in:
Julien Froidefond
2026-01-03 18:55:12 +01:00
parent acd26ea427
commit 512e9a480f
49 changed files with 244 additions and 4073 deletions

View File

@@ -22,9 +22,7 @@ export function ClientHomePage() {
setError(null);
try {
const response = await fetch("/api/komga/home", {
cache: "default", // Utilise le cache HTTP du navigateur
});
const response = await fetch("/api/komga/home");
if (!response.ok) {
const errorData = await response.json();
@@ -56,18 +54,8 @@ export function ClientHomePage() {
const handleRefresh = async () => {
try {
// Invalider le cache via l'API
const deleteResponse = await fetch("/api/komga/home", {
method: "DELETE",
});
if (!deleteResponse.ok) {
throw new Error("Erreur lors de l'invalidation du cache");
}
// Récupérer les nouvelles données
const response = await fetch("/api/komga/home", {
cache: "reload", // Force un nouveau fetch après invalidation
cache: "reload",
});
if (!response.ok) {