Skip to content

Delete old thumbnails from the media/cache directory and the database #721

Open
@uri-rodberg

Description

Hi,

We use sorl-thumbnail in our project (Speedy Net) and I defined THUMBNAIL_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 our media/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?

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions