fix: refresh has changed cache key

This commit is contained in:
Julien Froidefond
2025-02-23 10:54:39 +01:00
parent fd2632c394
commit 0bbb5e1aaa
3 changed files with 3 additions and 3 deletions

View File

@@ -97,7 +97,7 @@ export abstract class BaseApiService {
headers.set(key as string, value as string); headers.set(key as string, value as string);
} }
} }
// console.log("Fetching from", url); // console.log("🛜 Fetching from", url);
// console.log("Headers", headers); // console.log("Headers", headers);
// console.log("headersOptions", headersOptions); // console.log("headersOptions", headersOptions);
// console.log("options", options); // console.log("options", options);

View File

@@ -135,6 +135,6 @@ export class LibraryService extends BaseApiService {
} }
static async clearLibrarySeriesCache(libraryId: string) { static async clearLibrarySeriesCache(libraryId: string) {
serverCacheService.deleteAll(`library-${libraryId}-series`); serverCacheService.delete(`library-${libraryId}-all-series`);
} }
} }

View File

@@ -126,7 +126,7 @@ export class SeriesService extends BaseApiService {
} }
static async clearSeriesBooksCache(seriesId: string) { static async clearSeriesBooksCache(seriesId: string) {
serverCacheService.deleteAll(`series-${seriesId}-books`); serverCacheService.delete(`series-${seriesId}-all-books`);
} }
static async getFirstBook(seriesId: string): Promise<string> { static async getFirstBook(seriesId: string): Promise<string> {