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

Backup restore clear cache #3311

Merged
merged 3 commits into from
Aug 21, 2024
Merged

Conversation

nichwall
Copy link
Contributor

Fixes #3272

This PR purges the entire cache in /metadata/cache after restoring from a backup. The main reasoning for this is that backups may have different images or be done when migrating to a new server, so the cache should be cleared regardless.

I also updated the CacheManager to use ensureDir to be a little more readable.

@advplyr
Copy link
Owner

advplyr commented Aug 21, 2024

The reason ensureDir wasn't used there initially is because we used to set the UID/GID from the env variables but now that we aren't doing that ensureDir is better. Thanks!

@advplyr advplyr merged commit 5f572fa into advplyr:master Aug 21, 2024
4 checks passed
@nichwall nichwall deleted the backup_restore_clear_cache branch August 21, 2024 22:39
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.

[Enhancement] Clear image cache when restoring from backup
2 participants