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

Feature Request: Support Cleanup of Cache at X% Full #74

Open
MattMencel opened this issue Nov 12, 2024 · 0 comments
Open

Feature Request: Support Cleanup of Cache at X% Full #74

MattMencel opened this issue Nov 12, 2024 · 0 comments

Comments

@MattMencel
Copy link

Is it possible to add a new environment variable such that if the filesystem storage reaches a certain percent used, it would expire the oldest cache items?

CLEANUP_FILESYSTEM_PERCENT

  1. Prepare to save a cache
  2. Check the storage percentage used
  3. If above CLEANUP_FILESYSTEM_PERCENT purge the oldest item in the cache.
  4. Save the new cache item

I could see this working separately or in parallel with CLEANUP_OLDER_THAN_DAYS.

porunov added a commit to porunov/github-actions-cache-server that referenced this issue Dec 28, 2024
Fixes falcondev-oss#79
Partially related to falcondev-oss#74

Signed-off-by: Oleksandr Porunov <[email protected]>
porunov added a commit to porunov/github-actions-cache-server that referenced this issue Dec 28, 2024
Fixes falcondev-oss#79
Partially related to falcondev-oss#74

Signed-off-by: Oleksandr Porunov <[email protected]>
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

No branches or pull requests

1 participant