Skip to content

(#30) chore: increase cache retention to 30 days for safer cleanup#31

Merged
seunggabi merged 1 commit intomainfrom
chore/#30_increase-cache-retention
Feb 12, 2026
Merged

(#30) chore: increase cache retention to 30 days for safer cleanup#31
seunggabi merged 1 commit intomainfrom
chore/#30_increase-cache-retention

Conversation

@seunggabi
Copy link
Copy Markdown
Owner

Summary

Make cache cleanup more conservative by increasing default retention periods.

Changes

  • Deletion threshold: 7 → 30 days (MAC_OPS_CACHE_MAX_AGE_DAYS)
  • Protection threshold: 3 → 7 days (MAC_OPS_CACHE_RECENT_DAYS)
  • Update README documentation

Rationale

Apps may not be used for weeks but are still wanted (e.g., seasonal apps, infrequently used tools). The previous 7-day threshold was too aggressive.

Impact

Safer cleanup: Only removes caches from apps deleted 30+ days ago
More protection: Protects caches used within last 7 days
User control: Still customizable via environment variables

Example:

# More aggressive cleanup (old behavior)
MAC_OPS_CACHE_MAX_AGE_DAYS=7 mac-ops run --module=cache

# Even more conservative
MAC_OPS_CACHE_MAX_AGE_DAYS=90 mac-ops run --module=cache

Closes #30

🤖 Generated with Claude Code

Increase default retention periods for more conservative cleanup:
- MAC_OPS_CACHE_MAX_AGE_DAYS: 7 → 30 days (deletion threshold)
- MAC_OPS_CACHE_RECENT_DAYS: 3 → 7 days (protection threshold)

This prevents accidental deletion of apps that are temporarily unused
while still cleaning truly orphaned caches.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@seunggabi seunggabi merged commit 83002ae into main Feb 12, 2026
2 checks passed
@seunggabi seunggabi deleted the chore/#30_increase-cache-retention branch February 12, 2026 05:14
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.

chore: increase cache retention to 30 days for safer cleanup

1 participant