def METHOD_NAME(self) -> None:
    """Prunes cache; only keeps the 10 most recent items."""
    packages = sorted(self.cache_location.iterdir(), key=os.path.getmtime)
    for package in packages[10:]:
        if package.is_file():
            package.unlink()