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

Add management command to delete based on THUMBNAIL_CACHE_TIMEOUT #724

Closed
wants to merge 2 commits into from

Conversation

acjh
Copy link

@acjh acjh commented Feb 19, 2023

Resolves #721

This management command deletes thumbnails in the cache, kvstore (database) and storage (filesystem) if the file's created time is before THUMBNAIL_CACHE_TIMEOUT seconds ago.

Usage:

python manage.py thumbnail cleanup_delete_timeout

@uri-rodberg
Copy link
Contributor

Please see the discussion on #721.

@uri-rodberg
Copy link
Contributor

I'm closing this PR. There is a new PR - #740.

@uri-rodberg uri-rodberg closed this Aug 2, 2023
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.

Delete old thumbnails from the media/cache directory and the database
2 participants