As a doc-contributor, I don't want to download remote source code from repositories every time I run pulp-docs serve, which can happen quite frequently in a development process.
Also, I don't want to run the risk of keeping cached versions for too long, so I don't accidentally work with outdated code without noticing.
Requirements
[x] Only download/pull if the cache does not exist or is expired (maybe if using tmp we can rely on the fact it will go away, so that's when it would get expired).
[x] Add log info about caching (like whether it is used or not and where it is)
[x] Add an option to bypass cache (like pulp-docs serve --no-cache) to force re-download.
Feature
As a doc-contributor, I don't want to download remote source code from repositories every time I run
pulp-docs serve
, which can happen quite frequently in a development process.Also, I don't want to run the risk of keeping cached versions for too long, so I don't accidentally work with outdated code without noticing.
Requirements
pulp-docs serve --no-cache
) to force re-download.