mysociety / citizenconnect

Citizen Connect project for the NHS: reporting problems, leaving reviews
https://www.nhs.uk/careconnect/choices
Other
1 stars 0 forks source link

Cached article images directory is 18GB big #1305

Closed stevenday closed 10 years ago

stevenday commented 10 years ago

Not sure why, perhaps we're recreating things too often, or not deleting old images?

stevenday commented 10 years ago

Not deleting images is a Django feature - we need to implement a post_delete handler to remove them ourselves. We'll probably also need to run one-off script or management command to remove the existing images, but an easier way might just be to delete the existing images and articles, re-pull the articles to create new ones and then flush the image cache.