def delete_cached_file(cache, filename):
    """Delete cached file if present.

    :param cache: dictionary to hold opaque cache.
    :param filename: filename to delete
    """
    try:
        del cache[filename]
    except KeyError:
        pass
