fix: refresh has changed cache key
This commit is contained in:
@@ -97,7 +97,7 @@ export abstract class BaseApiService {
|
||||
headers.set(key as string, value as string);
|
||||
}
|
||||
}
|
||||
// console.log("Fetching from", url);
|
||||
// console.log("🛜 Fetching from", url);
|
||||
// console.log("Headers", headers);
|
||||
// console.log("headersOptions", headersOptions);
|
||||
// console.log("options", options);
|
||||
|
||||
@@ -135,6 +135,6 @@ export class LibraryService extends BaseApiService {
|
||||
}
|
||||
|
||||
static async clearLibrarySeriesCache(libraryId: string) {
|
||||
serverCacheService.deleteAll(`library-${libraryId}-series`);
|
||||
serverCacheService.delete(`library-${libraryId}-all-series`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ export class SeriesService extends BaseApiService {
|
||||
}
|
||||
|
||||
static async clearSeriesBooksCache(seriesId: string) {
|
||||
serverCacheService.deleteAll(`series-${seriesId}-books`);
|
||||
serverCacheService.delete(`series-${seriesId}-all-books`);
|
||||
}
|
||||
|
||||
static async getFirstBook(seriesId: string): Promise<string> {
|
||||
|
||||
Reference in New Issue
Block a user