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

Closed
bep opened this issue May 16, 2024 · 1 comment · Fixed by #12523
Closed

Improve the file cache for resources.GetRemote #12502

bep opened this issue May 16, 2024 · 1 comment · 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 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
bep added a commit to bep/hugo that referenced this issue Jun 3, 2024
bep added a commit to bep/hugo that referenced this issue Jun 3, 2024
bep added a commit to bep/hugo that referenced this issue Jun 3, 2024
bep added a commit to bep/hugo that referenced this issue Jun 3, 2024
bep added a commit to bep/hugo that referenced this issue Jun 3, 2024
bep added a commit to bep/hugo that referenced this issue Jun 3, 2024
bep added a commit to bep/hugo that referenced this issue Jun 3, 2024
bep added a commit to bep/hugo that referenced this issue Jun 3, 2024
bep added a commit to bep/hugo that referenced this issue Jun 4, 2024
bep added a commit to bep/hugo that referenced this issue Jun 4, 2024
bep added a commit to bep/hugo that referenced this issue Jun 4, 2024
bep added a commit to bep/hugo that referenced this issue Jun 4, 2024
bep added a commit to bep/hugo that referenced this issue Jun 4, 2024
@bep bep closed this as completed in 447108f Jun 4, 2024
bep added a commit that referenced this issue Jun 5, 2024
* Recover from server errors
* Improve go adapter rebuilds when adding new content

See #12502
Fixes #12570
bep added a commit that referenced this issue Jun 5, 2024
* Recover from server errors
* Improve go adapter rebuilds when adding new content

See #12502
Fixes #12570
bep added a commit that referenced this issue Jun 5, 2024
* Recover from server errors
* Improve go adapter rebuilds when adding new content

See #12502
Fixes #12570
bep added a commit that referenced this issue Jun 5, 2024
* Recover from server errors
* Improve go adapter rebuilds when adding new content

See #12502
Fixes #12570
bep added a commit that referenced this issue Jun 5, 2024
* Recover from server errors
* Improve go adapter rebuilds when adding new content

See #12502
Fixes #12570
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant