• Clear existing cache entry when bypassing cache.

    Parameters

    • title: string

      Manga title to clear from cache

    • cacheKey: string

      Cache key for the title

    Returns void

    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`,
    );
    }
    }