-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
Delete old thumbnails from the media/cache directory and the database #721
Comments
I added a management command to delete the cache, kvstore (database) and storage (filesystem) if the file's created time is before |
Hi Aaron, I think |
Hi Aaron. @claudep is not responding, so let's make a decision. I think you can define a new setting for the new action you added, which will be the number of seconds ago to remove files from the cache file system and the database. The default will be 90 days ( |
@acjh Also, please update https://github.com/jazzband/sorl-thumbnail/blob/master/docs/management.rst with the documentation for the new command in your PR. Is this taken as it is to https://sorl-thumbnail.readthedocs.io/en/latest/management.html? And also, if relevant please create tests to test that your new command is working properly. And the new setting, please document at https://github.com/jazzband/sorl-thumbnail/blob/master/docs/reference/settings.rst. |
I'm sorry, I'm a bit overwhelmed right now. |
…erenced Thanks Uri Rodberg for the report and the initial patch.
Hi,
We use
sorl-thumbnail
in our project (Speedy Net) and I definedTHUMBNAIL_CACHE_TIMEOUT = int(60 * 60 * 24 * 90) # 90 days
. I want every thumbnail to be regenerated if it's more than 90 days old. But I'm not sure if our thumbnails are regenerated after 90 days, do you know how I can check it? Because ourmedia/cache/
directory contains many files more than 90 days old. How do I check if all the thumbnails displayed on our website are less than 90 days old?The text was updated successfully, but these errors were encountered: