Manga title to clear from cache
Cache key for the title
export function handleCacheBypass(title: string, cacheKey: string): void {
console.debug(
`[MangaSearchService] ๐ฅ Fresh search: Explicitly clearing cache for "${title}"`,
);
if (mangaCache[cacheKey]) {
delete mangaCache[cacheKey];
console.debug(
`[MangaSearchService] ๐งน Removed existing cache entry for "${title}"`,
);
saveCache();
} else {
console.debug(
`[MangaSearchService] ๐ No existing cache entry found for "${title}" to clear`,
);
}
}
Clear existing cache entry when bypassing cache.