docs: def capture_or_cache(
      target_url,
      user_agent="savepagenow (https://github.com/pastpages/savepagenow)"
  ):
      """
      Archives the provided URL using archive.org's Wayback Machine, unless
      the page has been recently captured.
  
      Returns a tuple with the archive.org URL where the capture is stored,
      along with a boolean indicating if a new capture was conducted.
  
      If the boolean is True, archive.org conducted a new capture. If it is False,
      archive.org has returned a recently cached capture instead, likely taken
      in the previous minutes.
      """
      try:
          return capture(target_url, user_agent=user_agent, accept_cache=False), True
      except CachedPage:
          return capture(target_url, user_agent=user_agent, accept_cache=True), False