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

@@ -59,9 +59,7 @@ export function ClientLibraryPage({
params.append("search", search);
}
const response = await fetch(`/api/komga/libraries/${libraryId}/series?${params}`, {
cache: "default", // Utilise le cache HTTP du navigateur
});
const response = await fetch(`/api/komga/libraries/${libraryId}/series?${params}`);
if (!response.ok) {
const errorData = await response.json();
@@ -84,16 +82,6 @@ export function ClientLibraryPage({
const handleRefresh = async (libraryId: string) => {
try {
// Invalidate cache via API
const cacheResponse = await fetch(`/api/komga/libraries/${libraryId}/series`, {
method: "DELETE",
});
if (!cacheResponse.ok) {
throw new Error("Error invalidating cache");
}
// Recharger les données
const params = new URLSearchParams({
page: String(currentPage - 1),
size: String(effectivePageSize),
@@ -105,7 +93,7 @@ export function ClientLibraryPage({
}
const response = await fetch(`/api/komga/libraries/${libraryId}/series?${params}`, {
cache: "reload", // Force un nouveau fetch après invalidation
cache: "reload",
});
if (!response.ok) {
@@ -139,7 +127,7 @@ export function ClientLibraryPage({
}
const response = await fetch(`/api/komga/libraries/${libraryId}/series?${params}`, {
cache: "reload", // Force un nouveau fetch lors du retry
cache: "reload",
});
if (!response.ok) {