Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the file cache for resources.GetRemote #12502

Open
bep opened this issue May 16, 2024 · 0 comments · May be fixed by #12523
Open

Improve the file cache for resources.GetRemote #12502

bep opened this issue May 16, 2024 · 0 comments · May be fixed by #12523
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented May 16, 2024

The new Content Adapters work great, but the caching setup leaves something to be desired, and this is especially true for server edits.

I suggest that we add a HTTP cache wrapper (e.g. this https://github.com/gregjones/httpcache) and, when the server is running:

  • Add a "HTTP stale checker" in its own goroutine.
  • If any stale remote resources is found, pass these identities to Hugo's partial rebuild.
@bep bep added the Proposal label May 16, 2024
@bep bep added this to the v0.127.0 milestone May 16, 2024
@bep bep self-assigned this May 16, 2024
@bep bep added Enhancement and removed Proposal labels May 17, 2024
bep added a commit to bep/hugo that referenced this issue May 20, 2024
@bep bep linked a pull request May 20, 2024 that will close this issue
bep added a commit to bep/hugo that referenced this issue May 20, 2024
bep added a commit to bep/hugo that referenced this issue May 21, 2024
bep added a commit to bep/hugo that referenced this issue May 21, 2024
bep added a commit to bep/hugo that referenced this issue May 21, 2024
bep added a commit to bep/hugo that referenced this issue May 21, 2024
bep added a commit to bep/hugo that referenced this issue May 21, 2024
bep added a commit to bep/hugo that referenced this issue May 22, 2024
bep added a commit to bep/hugo that referenced this issue May 22, 2024
bep added a commit to bep/hugo that referenced this issue May 22, 2024
bep added a commit to bep/hugo that referenced this issue Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant