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

Use cache action's 'restore-keys' #34

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

connorjclark
Copy link

@connorjclark connorjclark commented Aug 14, 2023

This should greatly reduce bandwidth when modifying LFS objects. Fixes #27

@ncruces
Copy link

ncruces commented May 7, 2024

This is a good idea, but you probably want to run git lfs prune to avoid the cache growing indefinitely.

That way (some version of) old objects will be downloaded from cache, git lfs pull updates them (the partial hit will save bandwidth), then the cache is pruned of older stuff with git lfs prune, and the cache action only saves the pruned version for the next time.

FYI: I've validated this locally in my repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

changing any LFS object invalidates the entire cache, which can cost lots of bandwidth
2 participants