markdown-link-check icon indicating copy to clipboard operation
markdown-link-check copied to clipboard

Don't check the same URL multiple times

Open chriselion opened this issue 5 years ago • 1 comments

Following up from a comment

If the same URL appears twice in a file, you can cache the results of the first check and not check it again.

Ideally if we could pass multiple files at once, this caching would persist across files.

chriselion avatar Sep 25 '20 20:09 chriselion

The initial solution can be simple and without persistent caching: keep a dictionary/mapping URL -> status outside the file loop.

sanmai-NL avatar Feb 09 '22 17:02 sanmai-NL

There's an open task for this link-check issue #31. Feel free to implement it and submit a PR. It'd be a nice feature to have.

tcort avatar Mar 09 '23 21:03 tcort