Fixed Lychee cache key#3277
Merged
Merged
Conversation
|
Preview of modified files: no change to preview. |
Summary
|
adriendupuis
approved these changes
Jul 7, 2026
adriendupuis
left a comment
Contributor
There was a problem hiding this comment.
This github.sha usage looks like the key from doc https://lychee.cli.rs/continuous-integration/github/#caching (with branch name in the middle for restore-keys).
mnocon
added a commit
that referenced
this pull request
Jul 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Target: 5.0, 6.0
Right now, the cache key is based on the contents of the lychee.toml file.
But the file itself will rarely change, which means that almost every job uses the same cache keys.
This results in the cache not being used, even today.
Example:
https://github.com/ibexa/documentation-developer/actions/runs/28787092734
Restore Lychee cache:
Checking links
After checking links
So, the cache right now is too old to be used, it's not overwritten with fresher values (because it's matched on the primary key) - so it will always be stale.
Switching to commit hash allows us to use the cache for some builds, but will make it update every time we commit something new, keeping it fresh.
Self-review done by Claude: